-
Notifications
You must be signed in to change notification settings - Fork 285
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
Module named "Keras" is not defined #26
Comments
@nickhdfan, did you managed to solve this? I'm having the same problem. Supposably only tensorflow was needed. |
Add the following to ops.py apparently keras is actually a dependency for vgg54 training. If you are planning on training vgg54, you will also have to make the change to the following lines of model.py starting at around line 335. change them to look like this:
|
Hi, I have the same error, and the proposed solution didn't work for me, instead I get this new error:
Someone knows why this happens and how to solve it? |
i meet the same question, pip install keras, but doesn't work. |
@adeoy I believe that you have either installed regular tensorflow (not tensorflow-gpu) or you set CUDA_VISIBLE_DEVICES incorrectly when running the training script. @lxk1990727 Sounds like you need to update your tensorflow. |
@ryancom16 In fact I installed regular Tensorflow because I dont a GPU on my PC, but my processors are powerful enough to make this tasks. So, I cant do the next training without a GPU? Or how can I solve this problem? |
Still have the same issue, anyone found a solution? |
You need to add "import keras" in lib/ops.py |
I had the same issue during the second step training (SRGAN with MSE loss) and it was solved by adding "import keras" in lib/ops.py |
yes👍👍" import keras " best solution!!❤❤ |
I already installed "keras" and used import function in main.py but when I tried to train SRGAN with MSE this happened.
The text was updated successfully, but these errors were encountered: