pytorch-siggraph2017-inpainting
pytorch-siggraph2017-inpainting copied to clipboard
ModuleNotFoundError: No module named 'torch.legacy'
i cloned repo install requirements
then
python inpaint.py --input example.png --mask example_mask.png
Traceback (most recent call last):
File "inpaint.py", line 4, in
torch.legacy has removed from pytorch1.0, you should run it in pytorch0.4
torch.legacy has removed from pytorch1.0, you should run it in pytorch0.4
I have a question that if I run it in pytorch0.4, what version of torchvision do i need
There is a workaround, there is a new function in current pytorch CrossMapLRN2d which is doing the same thing.
So you can import this function by from torch.nn.modules import CrossMapLRN2d instead of SpatialCrossMapLRNOld