hanzhanggit / StackGAN

MIT License
1.86k stars 457 forks source link

ModuleNotFoundError: No module named 'misc' #62

Open jalayrupera opened 4 years ago

jalayrupera commented 4 years ago

traceback (most recent call last): File "misc/preprocess_birds.py", line 10, in from misc.utils import get_image ModuleNotFoundError: No module named 'misc'

mubeen-ikram commented 4 years ago

sys.path.insert(1, '/path/to/StackGAN-master') You have to set the system path for the StackGAN to access folders

jdesouza-ai commented 4 years ago

@mubeen-ikram Hey - I am running into a similar issue when running:

sh demo/birds_demo.py

I am getting an error which says "ImportError: No module named misc.config"

I have confirmed that the "config.py" file is there in the folder "misc" - do you know why it is having issues finding this module?

mubeen-ikram commented 4 years ago

I haven't work on the testing of project for quite a long time give me a day or two so i can work on it Thanks

jdesouza-ai commented 4 years ago

@mubeen-ikram - thanks a lot for the reply! And no need, I have found the solution:

The reason was quite a simple one which was covered by the instructions - you're supposed to add the folder path to the linux PYTHONPATH so that it can find the modules.

Really appreciate you being willing to work on it though!

Shivankit99 commented 4 years ago

@mubeen-ikram @jdesouza-ai i am trying to train the model on google colab . How do i add the folder path ?

lokesh142 commented 3 years ago

@mubeen-ikram @jdesouza-ai i am trying to train the model on google colab . How do i add the folder path ?

Brother import to gdrive and copy the path

lokesh142 commented 3 years ago

can u please elobarte how to do it?