Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download scripts no longer working #36

Closed
fniroui opened this issue Sep 20, 2018 · 11 comments
Closed

Download scripts no longer working #36

fniroui opened this issue Sep 20, 2018 · 11 comments

Comments

@fniroui
Copy link

fniroui commented Sep 20, 2018

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
Copy link
Contributor

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

@fniroui
Copy link
Author

fniroui commented Sep 20, 2018

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
Copy link

rotten commented Sep 21, 2018

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
Copy link

rotten commented Sep 21, 2018

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
Copy link

codergg4393 commented Sep 21, 2018

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
Copy link
Author

fniroui commented Sep 21, 2018

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.

@fniroui fniroui closed this as completed Sep 21, 2018
@fniroui fniroui reopened this Sep 21, 2018
@mrgloom
Copy link

mrgloom commented Sep 24, 2018

Error still exist in master.

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

@breckuh
Copy link

breckuh commented Sep 24, 2018

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
Copy link

This error is also present when using the docker image

@sevmardi
Copy link

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

@htadashi
Copy link

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 *

@fniroui fniroui closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants