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

colab notebook wrong torch vision version? 2.1 vs. 2.0 #818

Open
nyck33 opened this issue May 10, 2023 · 0 comments
Open

colab notebook wrong torch vision version? 2.1 vs. 2.0 #818

nyck33 opened this issue May 10, 2023 · 0 comments

Comments

@nyck33
Copy link

nyck33 commented May 10, 2023

https://colab.research.google.com/github/spmallick/learnopencv/blob/master/PyTorch-Multi-Label-Image-Classification/Multi_Output_Classification.ipynb#scrollTo=TclnDLwbdpbs

getting errors like

TypeError                                 Traceback (most recent call last)

[<ipython-input-17-a3cf0b65dd02>](https://localhost:8080/#) in <cell line: 1>()
----> 1 last_checkpoint_path = train()

[<ipython-input-16-dc3df90b86ee>](https://localhost:8080/#) in train(start_epoch, N_epochs, batch_size, num_workers)
     35         transforms.RandomHorizontalFlip(p=0.5),
     36         transforms.ColorJitter(brightness=0.3, contrast=0.3, saturation=0.3, hue=0),
---> 37         transforms.RandomAffine(degrees=20, translate=(0.1, 0.1), scale=(0.8, 1.2),
     38                                 shear=None, fillcolor=(255, 255, 255)),
     39         transforms.ToTensor(),

TypeError: RandomAffine.__init__() got an unexpected keyword argument 'fillcolor'

The one before it was same error but for resample so I deleted that and got this one.
Discussed here: https://discuss.pytorch.org/t/problem-with-transform-randomaffine-unexpected-argument-fillcolor/26542/3
What is a workaround?

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