-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I download only some needed categories? #68
Comments
Hi, I'm also interested on that request, there is this issue but I don't really understand : If you do understand how to proceed, can you explain it ? Thanks ! |
We currently provide annotations for the whole dataset. You can parse our CSV files and obtain the image keys only for labels of interest for your application. Then you can download images only for those keys. |
@aryus96 I've composed file with classes I need similar to |
To download specific classes, use this |
@harshilpatel312 your script is not downloading all the images. Could you please help me solving this. Thanks |
@jillelajitta use our OIDv4 Toolkit |
Thanks @keldrom,your script is working well but I don't want to download labels. Could you please help me where do I need to modify the script. |
@jillelajitta the labels are generated after the download of the image and takes few seconds but you give me a great feedback so next update I will add this options. |
@jillelajitta now you can avoid the creation of the labels with |
@keldrom Awesome,it's working. Thank you so much :) :) |
Hi, @keldrom, I have downloaded openimages train-annotations-bbox.csv and parsed it for each class,I found they don't have annotations for all the images. But when I was downloading labels from your script, I'm getting annotations for all the images. Does CSV files have annotations for all the images? Does your script have option to download only labels? |
@jillelajitta when you need help please create an issue on our repository.
The label for all the images are in the csv file associated and it's a gift from Google so I think it has all what we need.
Think about this scenario: you have downloaded some images, if you reuse the same command the scripts check the presence of the images and then creates the labels. If you want a scripts that creates only the labels you may can use a particular version of the function
Our scripts make .txt files with that specified structure because each application needs a properly sequence of information hence we cannot make an output for everyone. But this options is one of the next update list but I cannot assure you this release will be out in few time or not, I'm sorry. |
@keldrom import pandas as pd objlis=['Toy', 'Beer', 'Chopsticks', 'Towel', 'Glove', 'Sunglasses', 'Ball', 'Backpack', 'Headphones', 'Fast food', 'Screwdriver', 'Laptop', 'Person', 'Wrench', 'Flashlight', 'Scissors', 'Suitcase', 'Snack', 'Medical equipment', 'Cat', 'Computer mouse', 'Coin', 'Calculator', 'Box', 'Stapler', 'Drink', 'Ratchet', 'Hat', 'Eraser', 'Tin can', 'Mug', 'Can opener', 'Goggles', 'Coffee cup', 'Paper towel', 'Flying disc', 'Face powder', 'Fruit', 'Pillow', 'Hammer', 'Drinking straw', 'Hair dryer', 'Alarm clock', 'Knife', 'Bottle', 'Bottle opener', 'Dumbbell', 'Bowl', 'Musical instrument', 'Ring binder', 'Plate', 'Mobile phone', 'Crutch', 'Pencil case', 'Briefcase', 'Plastic bag', 'Sports equipment', 'Lipstick', 'High heels', 'Shotgun', 'Picture frame', 'Tripod', 'Picnic basket', 'Handbag', 'Toilet paper', 'Footwear', 'Tablet computer', 'Dog', 'Book', 'Axe', 'Flower', 'Spoon', 'Fork', 'Camera', 'Vegetable', 'Diaper', 'Envelope', 'Watch', 'Handgun', 'Facial tissue holder', 'Ruler', 'Luggage and bags', 'Umbrella', 'Glasses', 'Pen', 'Binoculars', 'Perfume', 'Remote control', 'Helmet'] df3=pd.merge(df1,df2,on='Class_id') #Created Columns 'Class_id' & 'class' in 'class-descriptions-boxable.csv' Please try this script on your computer once. Thanks. |
@jillelajitta open an issue on our repository |
@keldrom Sure Thanks. |
Hi, I've got this error when I try to download the images: python3 main.py downloader --classes Car --type_csv train --limit 100 INFO] Downloading Car. aws: not found |
install "awscli" library u will not see any issue |
python main.py downloader --classes Knife --type_csv train |
Does it every time download only 100 images.or behavior is different. try this and share result if it resolve your issue. |
Hello, I have a problem with the toolKit: [INFO] | Downloading Orange. During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I have such a problem when runnning the Toolkit in Windows 10, Python3.7. Can anyone give some advice? During handling of the above exception, another exception occurred: Traceback (most recent call last): Process finished with exit code 1 |
@WANGSHUAISWU next time open an issue on our repo please. |
Is it possible to download images from the extended open images dataset via this method as well? |
@keldrom , I have downloaded the images I need from the dataset. Many thanks! |
example how to download human mouth, human hand, etc
|
I have written a contribution to that concernig the class "doors" on medium. May be it helps. At least I downloaded around 13k of annoted images to train a ssd model on doors. |
script worked few times with no problems and suddenly now giving an error in line 56 in bounding_boxes.py. Using Visual Studio Code on MAC OS Python 3.6.10 Looks like few others had this issue but I don't see a resolution class_code = df_classes.loc[df_classes[1] == class_name].values[0][0]
Traceback (most recent call last): |
How i rename label...for example for motorcycle i want to rename it to Twowheeler?? |
Hi I only want to use the images of fruit and vegetable categories, I dont need a huge full dataset, can you please give me some instructions?
The text was updated successfully, but these errors were encountered: