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

RuntimeError: invalid argument 0 #4

Open
12-wu opened this issue Aug 8, 2021 · 0 comments
Open

RuntimeError: invalid argument 0 #4

12-wu opened this issue Aug 8, 2021 · 0 comments

Comments

@12-wu
Copy link

12-wu commented Aug 8, 2021

Hello, I have been reading this paper of yours recently, and I am very interested in the semi-supervised classification method you proposed. However, I have encountered some problems when I reproduce this code, so I would like to ask you for some advice. when I run latent-mixing.py, I encountered the following problems:
Traceback (most recent call last):
File "E:/图像分类/2/LatentMixing-master/latent-mixing.py", line 634, in
main()
File "E:/图像分类/2/LatentMixing-master/latent-mixing.py", line 335, in main
train_criterion, epoch, use_cuda, args.mixup, args.noSharp)
File "E:/图像分类/2/LatentMixing-master/latent-mixing.py", line 394, in train
(inputs_x, targets_x) = labeled_train_iter.next()
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 326 and 371 in dimension 3 at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensor.cpp:689
Looking forward to your reply!
Thank you very much!

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