fizyr / keras-retinanet

Keras implementation of RetinaNet object detection.
Apache License 2.0
4.38k stars 1.96k forks source link

No module named keras #1372

Closed DispooL closed 4 years ago

DispooL commented 4 years ago

Hello everyone! I tried to train my own detector following this tutorial and I've faced a really strange problem. When I try to execute this command inside the repo keras_retinanet/bin/train.py --tensorboard-dir TrainingOutput --snapshot-path snapshots --random-transform --steps 100 pascal dataset I get an error says 'No module named keras'. But keras library is properly installed and I did all of the installation steps but using pip3. I would be really happy if someone will be able to solve my problem.

OS : Ubuntu 20.04 Python 3.7.3 keras_retinanet/bin/train.py --tensorboard-dir TrainingOutput --snapshot-path snapshots --random-transform --steps 100 pascal dataset Traceback (most recent call last): File "keras_retinanet/bin/train.py", line 24, in <module> import keras ImportError: No module named keras

maaz-bin-asad commented 4 years ago

Hello , try the command sudo pip install keras in Linux distributions

TimNagle-McNaughton commented 4 years ago

Also having this issue when converting training to inference:

Command path\keras-retinanet\keras_retinanet\bin>convert_model.py path\models\train_36.h5 path\TAR_retinanet\models\infer_36.h5

Result: Traceback (most recent call last): File "path\keras-retinanet\keras_retinanet\bin\convert_model.py", line 31, in <module> from ..utils.config import read_config_file, parse_anchor_parameters File "path\keras-retinanet\keras_retinanet\bin\..\..\keras_retinanet\utils\config.py", line 19, in <module> import keras ImportError: No module named keras

stale[bot] commented 4 years ago

This issue has been automatically marked as stale due to the lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.