-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: size shape must match input shape. Input is 2D, size is 3 #1719
Comments
Hi @zhiweil20 |
sorry..., I don't really understand the concept in the dataset which file should I modify? |
It's the
|
But the segmentationClass folder is the picuture of segmentation label, How can I change the picture file? |
I don't know what your custom dataset exactly looks like, so might not give more advice.. |
sorry, my custom dataset is like voc style. But there is not an "Annotations" folder which contains xml file. As the pascal_voc12.py, ann_dir = 'SegmentationClass', I think the mask picture is the annnotation file. frame #23: __libc_start_main + 0xe7 (0x7f7408f62c87 in /lib/x86_64-linux-gnu/libc.so.6) Aborted (core dumped) Maybe somthing wrong with my enviroments? |
Thank you very much. I've tried use cv2 to change mask color value to label value, and now it can train. Thanks a lot! |
…for Wandb (open-mmlab#1719) Update train_unconditional.py Add logger flag to choose between tensorboard and wandb
I meet the same problem with #1048
while my mask file is RGB, I got problem ValueError: size shape must match input shape. Input is 2D, size is 3.
When I changed my mask file to gray image, I got same error with issue 1048
RuntimeError: CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. terminate called after throwing an instance of 'c10::CUDAError' what(): CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
My custom dataset define as the following
the final of issue 1048 said Mask pixel value should be label value solved this problem.
what does this mean? how to change my config file or mask file?
The text was updated successfully, but these errors were encountered: