i keep getting no module named losses.
See original GitHub issueI guess this might be a nive mistake but i couldnt find help anywhere,
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-42-41c13b054a82> in <module>()
5 from vis.utils import utils
6 from vis.utils.vggnet import VGG16
----> 7 from vis.visualization import visualize_saliency
8
9
/home/m/.local/lib/python3.5/site-packages/vis/visualization.py in <module>()
3 from keras import backend as K
4
----> 5 from losses import ActivationMaximization
6 from optimizer import Optimizer
7 from regularizers import TotalVariation, LPNorm
ImportError: No module named 'losses'
i tried adding a file named losses and added the code in the readme of the repo, i then got another error saying no module utils named utils.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Relative imports - ModuleNotFoundError: No module named x
TL;DR: You can't do relative imports from the file you execute since __main__ module is not a part of a package. Absolute imports...
Read more >How to import python loss layer? (ImportError: No module ...
I try to create my own python loss layer. ... But when I start the training using caffe - I get the error:...
Read more >How To Fix ModuleNotFoundError (No Module Named) in ...
The error ModuleNotFoundError no module named can happen for a number of reasons, including incorrect module names, incorrect module paths, and unintended ...
Read more >Module: tf.keras.losses | TensorFlow v2.11.0
get (...) : Retrieves a Keras loss as a function / Loss class instance. hinge(...) : Computes the hinge loss between y_true &...
Read more >ModuleNotFoundError: No module named 'loss-landscapes'
After the installation of loss-landscapes python library, ModuleNotFoundError: No module named 'loss-landscapes' error will be solved. Thanks. Post ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I fixed various issues recently and also updated the pip package. Let me know if this is still an issue.
The same problem ----> 6 from …losses import ActivationMaximization
ModuleNotFoundError: No module named ‘vis.losses’