-
Notifications
You must be signed in to change notification settings - Fork 53
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
ValueError: operands could not be broadcast together with shapes (88,23) (88,24) #10
Comments
Hi, this is probably caused by the incompatibility between python2 and python3. In my system, I use python->python2.7 and python3->python3.5. You can check the version of python in your system and retry. |
@luguansong 你好,今晚我再次遇到了这个问题,但是我感觉并不是因为python2和python3的不兼容性,我的也是python2->2.7,而且这个问题是在我批量处理图片的过程中,运行到某一张图片出现了这个问题,然后我就把这张图片单独拿出来进行测试,发现果然是这张图片的问题。 原文:https://blog.csdn.net/qq_18433441/article/details/56834207 我不知道该怎么修改,希望你可以帮忙修改下,不知道该怎么联系你,我可以向你提供有问题的图片,我的邮箱是:2197253439@qq.com |
This could be the indexing issue with target_mask_img and origin_body_part. I fix the issue by changing division to floor division.
|
s1@s1:~/Downloads/WSHP/data_generation$ bash demo.sh
length of json_dict 2
length of pascal_img 644
bbox [308, 272, 331, 406]
0 picked pascal 2010_003117_0
Traceback (most recent call last):
File "crop_pose_and_generate_testing_prior.py", line 97, in
prior = generate_prior_single_person(bbox, raw_pose, opt.PASCALMaskImgDir, pascal_poses, pascal_img_names, pascal_pose_dict, opt.n, opt.k)
File "/home/s1/Downloads/WSHP/data_generation/generate_prior_util.py", line 444, in generate_prior_single_person
morphingImg = morphing(pascal_mask_img, pascal_pose, pose, origin_size)
File "/home/s1/Downloads/WSHP/data_generation/generate_prior_util.py", line 351, in morphing
origin_body_part[origin_row_low:origin_row_high, origin_col_low:origin_col_high])
ValueError: operands could not be broadcast together with shapes (88,23) (88,24)
The text was updated successfully, but these errors were encountered: