Object-Detection-API icon indicating copy to clipboard operation
Object-Detection-API copied to clipboard

ModuleNotFoundError: No module named 'tensorflow.keras'

Open harshdaveee opened this issue 4 years ago • 1 comments

from yolov3_tf2.models import YoloV3, YoloV3Tiny File "E:\OD-2\Object-Detection-API\yolov3_tf2\models.py", line 5, in from tensorflow.keras import Model ModuleNotFoundError: No module named 'tensorflow.keras'

harshdaveee avatar Oct 26 '21 10:10 harshdaveee

This is because

  1. you are using venv different from python 3.7(if using pip, make 3.7 virtual environment)
  2. The virtual environment is not activated (where all the modules are installed ), uses conda activate

prabalp avatar Oct 28 '21 04:10 prabalp