YapengTian / TDAN-VSR-CVPR-2020

TDAN: Temporally-Deformable Alignment Network for Video Super-Resolution, CVPR 2020
MIT License
400 stars 62 forks source link

An error was encountered at runtime #21

Closed zzhh0622 closed 4 years ago

zzhh0622 commented 4 years ago

Thanks for your code. When run eval.py, something went wrong, the error is as follows, what should I do. torch.FatalError: invalid argument 5: 4D weight tensor (nOutputPlane,nInputPlane,kH,kW) expected, but got: (null) at /mnt/ssd0/project/ytian21/videoSR/DCN/src/deform_conv_cuda.c:15

zzhh0622 commented 4 years ago

I know this is a problem of default path,but I can't find where to change.

YapengTian commented 4 years ago

Did you re-compile the deformable conv?

zzhh0622 commented 4 years ago

Do you mean the second step in readme(bash make.sh). I have done that.

YapengTian commented 4 years ago

Successfully? In addition, what data you are testing now?

YapengTian commented 4 years ago

Did you follow the instructions to install pytorch-031?

zzhh0622 commented 4 years ago

No error.But I don't how to cofirm if is successful.I use the test-date you support.

zzhh0622 commented 4 years ago

I use pytorch-041.Let me try 0-3-1.

YapengTian commented 4 years ago

Yes, please try pytorch031 and compile dconv again.

zzhh0622 commented 4 years ago

It's OK now. Thanks for your reply.

stalestar commented 3 years ago

Hello,i have encountered the same problem,when i install pytorch031,compile dconv and run eval.py, it report the error: Traceback (most recent call last): File "eval.py", line 6, in import torch File "/opt/conda/lib/python3.6/site-packages/torch/init.py", line 320, in import torch.distributions File "/opt/conda/lib/python3.6/site-packages/torch/distributions/init.py", line 77, in from .categorical import Categorical File "/opt/conda/lib/python3.6/site-packages/torch/distributions/categorical.py", line 2, in from torch._six import nan ImportError: cannot import name 'nan' Do you know how to fix it ? Thanks.

YapengTian commented 3 years ago

Sorry for the late response. It seems that PyTorch is not well installed.