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

error when run "python data_pascal_voc.py pascal_voc_setup" #69

Open
xujoyce opened this issue Mar 20, 2018 · 2 comments
Open

error when run "python data_pascal_voc.py pascal_voc_setup" #69

xujoyce opened this issue Mar 20, 2018 · 2 comments

Comments

@xujoyce
Copy link

xujoyce commented Mar 20, 2018

when I run "python data_pascal_voc.py pascal_voc_setup" to get the "combined_imageset_train.txt" file, error occurs as follows:

Traceback (most recent calls WITHOUT Sacred internals):
File "data_pascal_voc.py", line 205, in pascal_voc_setup
combined_annotations_path)
File "data_pascal_voc.py", line 135, in pascal_voc_berkeley_combined
mode=voc_data_subset_mode)
File "/root/src/tf-image-segmentation/tf_image_segmentation/utils/pascal_voc.py", line 570, in get_augmented_pascal_image_annotation_filename_pairs
train_from_berkeley_image_annotation_pairs + train_from_pascal_image_annotation_pairs
TypeError: unsupported operand type(s) for +: 'zip' and 'zip'

How to resolve this issue?
Thanks a lot!

@niuliang42
Copy link

Totally same problem, I think this is probably due to the laziness of Py3k. Just try to change all zip(...) to list(zip(...)) in "src/tf-image-segmentation/tf_image_segmentation/utils/pascal_voc.py".
I fixed it by doing that, hopefully it will work for you as well.

@zhaoxuyan
Copy link

@wangxiaodiu 非常感谢!已解决

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

3 participants