You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you read the notebook you'll see at some point:
Comment or un-comment out a few lines of code to seamlessly switch between standard AE and denoising one.
# Train standard or denoising autoencoder (AE)num_epochs=20# do = nn.Dropout() # comment out for standard AEforepochinrange(num_epochs):
fordataindataloader:
img, _=dataimg=img.to(device)
img=img.view(img.size(0), -1)
# noise = do(torch.ones(img.shape)).to(device)# img_bad = (img * noise).to(device) # comment out for standard AE# ===================forward=====================output=model(img) # feed <img> (for std AE) or <img_bad> (for denoising AE)loss=criterion(output, img.data)
Hi!
When I'm trying to run the code 10-autoencoder.ipynb I get an error in the second to last cell, which is:
The error saying:
How could I fix this?
Thanks!
The text was updated successfully, but these errors were encountered: