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: Please make sure all you images and ground truth masks are in jpg and png format respectively !!!" #144

Open
CabbageWust opened this issue Oct 14, 2024 · 0 comments

Comments

@CabbageWust
Copy link

Why '.png' is necessaary for label ? When I change the 'name_im_gt_list[0]["gt_ext"] = ".png" ' to ' name_im_gt_list[0]["gt_ext"] = ".jpg" ', an error occurred that "RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0". Then I check my custom trainset with cv2.imread() and all shapes are [3000, 2000, 3] for image and [3000, 2000, 1] for gt, there is no image with shape[3000, 2000, 4]

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