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

error in training #1

Open
saisriteja opened this issue Apr 9, 2019 · 3 comments
Open

error in training #1

saisriteja opened this issue Apr 9, 2019 · 3 comments
Assignees

Comments

@saisriteja
Copy link

@Albert-Hanstein
i have my own dataset of 64643 shape in the data directory
buy i got this error can you help me with this
/usr/local/lib/python3.6/dist-packages/torchvision/transforms/transforms.py:208: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead.
"please use transforms.Resize instead.")

ValueError Traceback (most recent call last)
in ()
122 #print('data',data)
123 # Training the discriminator with a real image of the dataset
--> 124 real, _ = data
125 input = Variable(real)
126 target = Variable(torch.ones(input.size()[0]))

ValueError: too many values to unpack (expected 2)

@Albert-Hanstein Albert-Hanstein self-assigned this Apr 13, 2019
@Albert-Hanstein
Copy link
Owner

Hi @saisriteja ,
Could you provide more details about your environment, especially the version of PyTorch you are using?
Also, this may sound like stating the obvious, but did you try replacing the Scale function with Resize?

@saisriteja
Copy link
Author

@Albert-Hanstein I did it on google collab, I new to this... I don't know which version when I did this.

@Albert-Hanstein
Copy link
Owner

@saisriteja Could you provide the link to the colab?

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