Skip to content
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

i tried to run download images it in colab but it showed this error #196

Open
jocker1854 opened this issue Sep 18, 2024 · 1 comment
Open

Comments

@jocker1854
Copy link

2024-09-18 12:04:46,761 - root - Download https://storage.googleapis.com/openimages/2018_04/class-descriptions-boxable.csv.
2024-09-18 12:04:46,851 - root - Download https://storage.googleapis.com/openimages/2018_04/train/train-annotations-bbox.csv.
2024-09-18 12:04:56,822 - root - Read annotation file /root/data/open_images/train-annotations-bbox.csv
2024-09-18 12:05:22,822 - root - train bounding boxes size: 3272
2024-09-18 12:05:22,822 - root - Approximate Image Stats:
Traceback (most recent call last):
File "/content/pytorch-ssd/open_images_downloader.py", line 171, in
log_counts(annotations.drop_duplicates(["ImageID", "ClassName"])["ClassName"])
File "/content/pytorch-ssd/open_images_downloader.py", line 63, in log_counts
for k, count in values.value_counts().iteritems():
File "/usr/local/lib/python3.10/dist-packages/pandas/core/generic.py", line 6204, in getattr
return object.getattribute(self, name)
AttributeError: 'Series' object has no attribute 'iteritems'

@AlanMuErDan
Copy link

This is due to the version of pandas. Just change "value_counts().iteritems()" to "values.value_counts().items()" in open_inages_downloader.py in line 63 and things will work out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants