-
Notifications
You must be signed in to change notification settings - Fork 13
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
about code recurrence bug #2
Comments
@GitGyun Hi, I also want to know the detailed information of dataset/meta_info/class_dict.pth. I think this may help me solve the problem. |
@GitGyun I corrected my data placement format. However, a new error has occurred: the label size for semantic segmentation is 256 * 256, while the label size for other tasks is 512 * 512. When running this line of codehttps://github.com/GitGyun/visual_token_matching/blob/950bf8ef395a3e29aacb664bf4c7f2b3bd6b519d/dataset/taskonomy.py#L453, an error 'RuntimeError: stack expects each tensor to be equal size, but got [8, 1, 512, 512] at entry 0 and [8, 1, 256, 256] at entry 1' will be reported due to size issues. ########update####
#######update again###### I found the resize code. But the taskonomy(tiny splits) I downloaded have damaged images. And I try to download it again, but it is the same. My download path is https://datasets.epfl.ch/taskonomy/links.txt. The images newfields_point_1070_view_8_domain_rgb.png、muleshoe_point_399_view_5_domain_rgb.png 、woodbine_point_1096_view_6_domain_rgb.png、pinesdale__point_1519_view_2_domain_keypoints3d.png、noxapater__point_21_view_0_domain_keypoints3d.png I downloaded is damaged. Is yours the same as mine? I want to confirm if it is damaged. When encountered the five images,the resize function will report error. May I ask how you handled these damaged images? Delete directly? If I delete the five rgb images<newfields_point_1070_view_8_domain_rgb.png、muleshoe_point_399_view_5_domain_rgb.png 、woodbine_point_1096_view_6_domain_rgb.png、pinesdale__point_1519_view_2_domain_rgb.png、noxapater__point_21_view_0_domain_rgb.png>, the error will happen again in this line<self.class_idxs = [class_idx for class_idx in class_idxs if self.img_paths[class_idx].split('')[0] in buildings] > I modify this line to <self.class_idxs = [class_idx for class_idx in class_idxs if class_idx<len(self.img_paths) and self.img_paths[class_idx].split('')[0] in buildings]>, no errors will be reported during training. But as I don't know the detailed information of dataset/meta_info/class_dict.pth', I don't know if this modification is appropriate. |
did you able to solve that issue? |
Same error. Did you solve this? |
visual_token_matching/dataset/taskonomy.py
Line 550 in 950bf8e
Hi, in this line,the length of self.img_paths is 35, but the maximum of class_idxs is 381915, error 'IndexError: list index out of range' will be reported during code operation. Is there any error in your code logic?
Here is my data structure. Could you see if it is correct?
The text was updated successfully, but these errors were encountered: