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

The generated mask graph is in the shape of [h, W, 3]. Now, the following data that only supports three-dimensional data appears using celoss. Does it need to convert the three-channel graph into one channel? Finally, do a dimensionality reduction to get the shape of [n, h, w] ? #313

Open
gittjob opened this issue Nov 8, 2021 · 8 comments

Comments

@gittjob
Copy link

gittjob commented Nov 8, 2021

1only batches of spatial targets supported (3D tensors) but got targets of size: : [1, 254, 500, 3]

@gittjob
Copy link
Author

gittjob commented Nov 8, 2021

image

@SkevyHoo
Copy link

SkevyHoo commented Nov 8, 2021

U can do some changes,including transform your masks to one-channel.

@gittjob
Copy link
Author

gittjob commented Nov 9, 2021

ok,thank U.its good.

@BaoanhTrinh
Copy link

@SkevyHoo i got predicted mask has shape : torch.Size([1, 2, 497, 640]) and ground true mask has shape:
GT torch.Size([1, 497, 640]). I wander what the 2nd dimension in predicted mask shape stand for? Thanks

@BEFOURD
Copy link

BEFOURD commented Feb 25, 2022

@BaoanhTrinh n_classes

@KaiXinZhang2000
Copy link

ok,thank U.its good.

I also encountered this problem, did you solve it? how to solve

@xyx0430
Copy link

xyx0430 commented Jun 10, 2022

图片

你好,我也出现了这个问题,请问你这个问题解决了吗

@BEFOURD
Copy link

BEFOURD commented Jun 10, 2022

你需要将你的true_masks转换为单通道格式 @xyx

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

6 participants