theAIGuysCode/Object-Detection-API

ModuleNotFoundError: No module named 'tensorflow.keras'

Opened this issue · 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'

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