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

Getting an error when try to parse cowc dataset #5

Closed
Jakaria08 opened this issue Nov 17, 2018 · 1 comment
Closed

Getting an error when try to parse cowc dataset #5

Jakaria08 opened this issue Nov 17, 2018 · 1 comment

Comments

@Jakaria08
Copy link

The Error:
Executing get_gdf_tot_cowc()...
0 label_image_path: /home/hipstudents/cosmiq/cowc/datasets/ground_truth_sets/Utah_AGRC/12TVL240120_Annotated_Cars.png
0 image_path: /home/hipstudents/cosmiq/cowc/datasets/ground_truth_sets/Utah_AGRC/12TVL240120.png
Traceback (most recent call last):
File "parse_cowc.py", line 290, in
main()
File "parse_cowc.py", line 273, in main
verbose=verbose)
File "parse_cowc.py", line 212, in get_gdf_tot_cowc
yolt_box_size, verbose=verbose)
File "parse_cowc.py", line 157, in cowc_to_gdf
verbose=verbose)
File "parse_cowc.py", line 78, in gt_boxes_from_cowc_png
if len(label_locs) == 0:
TypeError: object of type 'zip' has no len()
........................................................

I don't know why this is happening.
I downloaded all data under Utah_AGRC Folder.

@Jakaria08
Copy link
Author

I solved the problem.

Instead of - label_locs = zip(*np.where(gt_c > 0))
I use - label_locs = list(zip(*np.where(gt_c > 0)))

avanetten added a commit that referenced this issue Apr 22, 2019
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

1 participant