NVIDIA / vid2vid

Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photorealistic video-to-video translation.
Other
8.6k stars 1.2k forks source link

Download scripts no longer working #36

Closed fniroui closed 2 years ago

fniroui commented 6 years ago

ModuleNotFoundError: No module named 'scripts.download_gdrive'

They need to be updated as the scripts are now in specific sub folders. Also, I believe an init.py file is required in the scripts folder.

tcwang0509 commented 6 years ago

It seems I can run the script successfully without any issues. Can you provide more info of you system?

fniroui commented 6 years ago

Ubuntu 16.04, Python 3.6, PyTorch 0.4.0. Tried both locally and on EC2. I'll keep looking to see if the problem is on my side, but adding the init.py file did fix the problem for me yesterday.

Traceback (most recent call last): File "scripts/street/download_models.py", line 2, in from scripts.download_gdrive import * ModuleNotFoundError: No module named 'scripts.download_gdrive'

rotten commented 6 years ago

I am hitting the same error. Ubuntu 18.04 Python 3.6.5. My first reaction was to drop an init.py into the scripts folder too, but it didn't help on the first try. I'm still looking at it.

rotten commented 6 years ago

My hack was to cd into scripts/street, then do "ln -s ../download_* .", and then update download_models.py to import from the current folder. Ditto for face and pose. That is a hack, but it got me past that step for now. I was too impatient to figure out the correct import paths and module stubs.

codergg4393 commented 6 years ago

I am too having the same issue. Which is, I get this error when I try to download:

ModuleNotFoundError: No module named 'scripts.download_gdrive'

I also tried to run my own model and I am getting this:

ImportError: No module named flownet2_pytorch.networks.resample2d_package.resample2d

I have made sure pyTorch is installed. Its using 0.4.1.

This I think is because I was unable to download the sample model? Please help.

I am on ubuntu 16.04 running on 1 Tesla K80 GPU.

fniroui commented 6 years ago

I am too having the same issue. Which is, I get this error when I try to download:

ModuleNotFoundError: No module named 'scripts.download_gdrive'

I also tried to run my own model and I am getting this:

ImportError: No module named flownet2_pytorch.networks.resample2d_package.resample2d

I have made sure pyTorch is installed. Its using 0.4.1.

This I think is because I was unable to download the sample model? Please help.

I am on ubuntu 16.04 running on 1 Tesla K80 GPU.

You can manually move the download_drive.py to the street folder and modify the import line for now. Also for resample2d make sure you are installing flownet2.

mrgloom commented 6 years ago

Error still exist in master.

It's something like https://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python

breckuh commented 6 years ago

I forget Python's import rules so a quick hacky workaround is to insert this at the top of "scripts/face/download_models.py":

import sys
sys.path.insert(0, "Asbolute path to your vid2vid/scripts folder")
TiborUdvari commented 6 years ago

This error is also present when using the docker image

sevmardi commented 6 years ago

Having the same issue. Any proper ways to deal with this?

htadashi commented 6 years ago

I forget Python's import rules so a quick hacky workaround is to insert this at the top of "scripts/face/download_models.py":

import sys
sys.path.insert(0, "Asbolute path to your vid2vid/scripts folder")

breckuh solution works fine. Do not forget to change line:

from scripts.download_gdrive import *

to

from download_gdrive import *