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

在使用unet-dade #5

Open
lkfiean opened this issue Dec 14, 2023 · 3 comments
Open

在使用unet-dade #5

lkfiean opened this issue Dec 14, 2023 · 3 comments

Comments

@lkfiean
Copy link

lkfiean commented Dec 14, 2023

No description provided.

@lkfiean
Copy link
Author

lkfiean commented Dec 14, 2023

在使用unet-da的时候,出现了维度不匹配的问题
ValueError: Using a target size (torch.Size([2])) that is different to the input size (torch.Size([2, 1, 11, 11])) is deprecated. Please ensure they have the same size.

@lkfiean
Copy link
Author

lkfiean commented Dec 14, 2023

初步判断是域分类器那里,未将输出维度转化,请问该如何解决呢,谢谢

@YonghengSun1997
Copy link
Owner

是域分类器的输出和域标签维度不匹配吗?可以试试(1)将域分类器输出在H,W维度取均值。或者(2)将域标签维度改成[2, 1, 11, 11]

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

2 participants