sniklaus / 3d-ken-burns

an implementation of 3D Ken Burns Effect from a Single Image using PyTorch
Other
1.51k stars 224 forks source link

Attempting to read a .pytorch file instead of a .py file #18

Closed Msaif2299 closed 4 years ago

Msaif2299 commented 4 years ago

Hi! Can I get a solution to this error? I can't seem to find anything online for this either.

python autozoom.py --in ./images/doublestrike.jpg --out ./autozoom.mp4 pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "autozoom.py", line 45, in exec(open('./models/disparity-estimation.py', 'r').read()) File "", line 195, in File "C:\Users\msaif\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 525, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\msaif\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 212, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\msaif\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\serialization.py", line 193, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: './models/disparity-estimation.pytorch'

sniklaus commented 4 years ago

Seems like the pre-trained model is missing, did you follow the steps outlined in the setup section?

redreamality commented 4 years ago

If you download the models using other tools other than the provided download.bash, remember to change filename according to the bash file.