Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
OK, so I changed the cvall to use python3 not python, and I get the following error instead:
Traceback (most recent call last): File “main.py”, line 287, in <module> main() File “main.py”, line 44, in main evaluate(args) File “main.py”, line 242, in evaluate style_model = Net(ngf=args.ngf) File “/root/style_transfer/PyTorch-Style-Transfer/experiments/net.py”, line 284, in init model += [upblock(ngf*expansion, 32, 2, norm_layer), File “/root/style_transfer/PyTorch-Style-Transfer/experiments/net.py”, line 127, in init kernel_size=1, stride=1, upsample=stride) File “/root/style_transfer/PyTorch-Style-Transfer/experiments/net.py”, line 167, in init self.upsample_layer = torch.nn.Upsample(scale_factor=upsample) AttributeError: module ‘torch.nn’ has no attribute ‘Upsample’
Hi,
I’m not sure if you got this solved but I had the same issue and got it working by upgrading PyTorch to the latest version.
pip3 install http://download.pytorch.org/whl/cpu/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl pip3 install torchvision
It seemed to resolve the “AttributeError: module ‘torch.nn’ has no attribute ‘Upsample’” error
You can see what version you’re running with:
import torch print(torch.version)
I hope that helps!