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

Running code on custom segmentation dataset #8

Open
SinghTejwinder opened this issue Jul 19, 2021 · 0 comments
Open

Running code on custom segmentation dataset #8

SinghTejwinder opened this issue Jul 19, 2021 · 0 comments

Comments

@SinghTejwinder
Copy link

Hi, I am trying to run this code on my custom image segmentation dataset which has 13 label classes but I am getting the following error :

RuntimeError: 1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size: : [4, 768, 768, 3]

I checked for the output and target tensor sizes and they are

-------------Output------------ torch.Size([4, 13, 768, 768])
-------------Target------------ torch.Size([4, 768, 768, 3])

I am not getting why the code is predicting an image with 13 channels. Can you please let me know what changes do I need to make in order to run this code.

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