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

你好,我是用2d图像训练时遇到问题 #46

Open
NBIronman opened this issue Jun 9, 2022 · 4 comments
Open

你好,我是用2d图像训练时遇到问题 #46

NBIronman opened this issue Jun 9, 2022 · 4 comments

Comments

@NBIronman
Copy link

在使用您的代码时,我设置2d图像训练,在main.py文件中255行和277行,应该怎么修改吗?

@NBIronman
Copy link
Author

分别报RuntimeError: number of dims don't match in permute
以及ValueError: Input tensor must be 4D
这两个错误

@NickWang1122
Copy link

你好,我也遇到了这个问题,
model_output_one_hot = torch.nn.functional.one_hot(labels, num_classes=hp.out_class+1).permute(0,4,1,2,3)是这行代码报错
请问解决了吗?

@MontaEllis
Copy link
Owner

抱歉,我会在最近更新一下代码

@pipixiaipip
Copy link

在使用您的代码时,我设置2d图像训练,在main.py文件中255行和277行,应该怎么修改吗?

你好,请问您解决了吗?该如何解决啊

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

4 participants