keras-team / keras-cv

Industry-strength Computer Vision workflows with Keras
Other
1.01k stars 330 forks source link

ModuleNotFoundError: No module named 'keras_core' #2026

Closed X-TRON404 closed 1 year ago

X-TRON404 commented 1 year ago

Current Behavior:

The import: from keras_cv.layers import RandAugment throws an error

---> 14 from keras_core.src.backend.tensorflow import *  # noqa: F403, F401
     15 from keras_core.src.backend.tensorflow import (  # noqa: F403, F401
     16     convert_to_numpy,

ModuleNotFoundError: No module named 'keras_core'

Expected Behavior:

I expect the import to work properly as my tensorflow version is > 2.12.0

Steps To Reproduce:

Run following in colab with T4 GPU:

!pip install keras-cv
!pip install tensorflow==2.13.0
from keras_cv.layers import RandAugment

Version:

ianstenbit commented 1 year ago

Hey @X-TRON404 thanks for the report.

The next release will correctly include this as a dep, so you won't have to manually install, but for now you can just run !pip install keras-core to install this dependency.