24th April 2025

Hugging Face pc imaginative and prescient datasets could be imported into Roboflow for extra labeling and/or cloud-hosted coaching. Utilizing Hugging Face datasets to kickstart your pc imaginative and prescient mannequin coaching in Roboflow permits you to then deploy fashions with a Roboflow hosted API endpoint, in your personal personal cloud, or on edge gadgets.

On this tutorial, you’ll learn to import a Hugging Face dataset into Roboflow for coaching a mannequin and deploying a mannequin. 

Step 1. Discovering Datasets on Hugging Face

Head to Hugging Face and discover the dataset appropriate on your activity. The instance dataset used on this tutorial could be discovered right here: https://huggingface.co/datasets/keremberke/license-plate-object-detection 

If you wish to import annotations with the picture, be sure your dataset has a xml, json, or csv file containing mandatory data to create the mannequin. Roboflow can be utilized to convert annotations between codecs and helps 40+ totally different annotation codecs.

After discovering the appropriate dataset, obtain the recordsdata utilizing git.

Step 2. Obtain Git

Downloading git is totally different on totally different gadgets. To obtain git:

Mac: 

# run this command in terminal
brew set up git (should have brew put in)
brew set up git-lfs (should have brew put in)

Linux Ubuntu/Debian: 

# run this command in terminal
sudo apt set up git
sudo apt set up git-lfs

Fedora:

# run this command in terminal
sudo dnf set up git
sudo dnf set up git-lfs

Step 3. Obtain the Hugging Face Dataset

With git, we are able to obtain the dataset. 

Utilizing the hyperlink of our most popular dataset, the command needs to be git clone [“PATH OF THE LINK”].

Utilizing the instance dataset, the command will probably be:

git clone https://huggingface.co/datasets/keremberke/license-plate-object-detection 

After operating an identical command, we should always have new recordsdata in our downloads folders

Step 4. Create A Venture on Roboflow

Now that now we have a dataset, we are able to create a venture on Roboflow. First register/create a Roboflow account. 

Subsequent, create a venture by clicking on the button within the prime proper nook. 

Subsequent, choose a venture kind. Relying in your knowledge and activity, your venture kind could also be totally different. As a result of the instance dataset desires to detect the place and place of license plates, we are going to use an object detection venture. 

Moreover, in case your xml, json, or csv file comprises the precise coordinates of particular factors, this signifies that the dataset could also be fitted to object detection, because it explicitly signifies the place the annotations are positioned.

After we choose our dataset, we are able to lastly enter the recordsdata into our dataset. 

Conclusion

By following this tutorial, you’ve discovered the right way to import a Hugging Face dataset into Roboflow utilizing git.

As soon as uploaded to Roboflow, you possibly can annotate extra objects, add extra knowledge from Roboflow Universe, practice a mannequin, and deploy the mannequin to any system utilizing Inference.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.