Closed ShubhamAbhayDeshpande closed 1 year ago
you may forget to add data_preprocessor in your model. I met this issue, too. If it is not get solved, maybe your label don't load appropriately. I make change on my label, it should have only one channel instead of three.
@LiJiahang617 Thank you for the suggestion. I am not getting this error after converting the segmentation masks to gray scale images.
Closing this issue with above comment.
hello, i got the same problem when i train the model, could you tell me how to fix the problem. And my data is: the picture: the label: 0b) thank you so much!!!!
我也遇到了这个问题 我的标签是0~10像素值的灰度图
@LiJiahang617 Thank you for the suggestion. I am not getting this error after converting the segmentation masks to gray scale images.
can I ask how to modify the configs to convert the segmentation masks to gray scale images?
in the resource code,see transform.py
---Original--- From: "kelper @.> Date: Sat, Jan 13, 2024 21:12 PM To: @.>; Cc: @.**@.>; Subject: Re: [open-mmlab/mmsegmentation] RuntimeError: only batches of spatialtargets supported (3D tensors) but got targets of size: : [2, 256, 256, 3](Issue #3055)
@LiJiahang617 Thank you for the suggestion. I am not getting this error after converting the segmentation masks to gray scale images.
can I ask how to modify the configs to convert the segmentation masks to gray scale images?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug I am trying to use different segmentation models to segment the freiburg forest dataset. The link to the dataset is given below.
http://deepscene.cs.uni-freiburg.de/segment_random/CITYSCAPES_RGB?dataset=freiburgforest&model=FOREST_RGB
I have made the required config files for mmsegmentation according to the documentation in the link below.
https://github.com/open-mmlab/mmsegmentation/blob/0.x/docs/en/tutorials/config.md
I am getting the following error in the code. And I cannot backtrack this error to its source. Can someone please tell me exactly where the error is originating and how to fix it?
Reproduction
Command/ Script that I ran
Environment
Error traceback
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!