'Folder being mistaken for module Error: no module named "GAN"
I'm running this github project: https://github.com/Biomatter-Designs/ProteinGAN the second step says 2. Run the training script with python train_gan. but when I run the file I get:
/usr/local/bin/python3 /Users/user/Desktop/ProteinGAN-master/src/gan/train_gan.py
Traceback (most recent call last):
File "/Users/user/Desktop/ProteinGAN-master/src/gan/train_gan.py", line 8, in <module>
from gan.models import get_model, get_specific_hooks
ModuleNotFoundError: No module named 'gan'
I don't understand why it thinks the GAN folder is a module.
Solution 1:[1]
Had the issue error trying to import gan files on google colab.
I corrected my /content/gdrive folder to the exact path and it worked. I hope this helps out.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jeager |
