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

No module named 'utils.loaders' #84

Open
claudiofernandez opened this issue Jan 25, 2021 · 2 comments
Open

No module named 'utils.loaders' #84

claudiofernandez opened this issue Jan 25, 2021 · 2 comments

Comments

@claudiofernandez
Copy link

I am facing a problem when trying to import modules that are inside the folders.
For instance in the notebook "03_01_autoencoder_train.ipynb" in the first cell when trying to import the module loaders.py inside the utils folder in order to load the mnist dataset, I get the error "ModuleNotFoundError: No module named 'utils.loaders'".

In the same sense, for instance in the notebook "03_05_vae_faces_train" again in the first cell, when it tries to run the line "from models.VAE import VariationalAutoEncoder" it tries to run the VAE.py inside the folder "models" it also fails in the line "from utils.callbacks import CustomCallback, step_decay_schedule" showing the following error: "ModuleNotFoundError: No module named 'utils.callbacks'".

It seems that it cannot recognize the utils folder in my directory.

I am running this from a jupyter notebook of an Anaconda environment created following step by step the instructions in the book.

Has anyone faced a similar issue?
Can anyone help me?

@bransonli
Copy link

Mine works fine in Vscode. Maybe try vscode instead of jupyter notebook, then select the same Anaconda environment.

@JerryJohnThomas
Copy link

JerryJohnThomas commented Jun 2, 2021

trying putting tensorflow.utils and also in VAE, change the errors by adding tensorflow. to the starting, cheers mate

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

3 participants