Closed fniroui closed 2 years ago
It seems I can run the script successfully without any issues. Can you provide more info of you system?
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'
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.
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.
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.
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.
Error still exist in master.
It's something like https://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python
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")
This error is also present when using the docker image
Having the same issue. Any proper ways to deal with this?
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 *
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.