keras-team / keras-cv

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

Import of Keras_cv failing, No module named 'keras_core' on object detection pipeline tutorial #1932

Closed stephentyers1975 closed 1 year ago

stephentyers1975 commented 1 year ago

Hi,

I'm trying to run the code from the official Kerascv object detection tutorial: https://keras.io/guides/keras_cv/object_detection_keras_cv/

I'm getting the following error about Tensorflow must be on version 2.13

Screenshot 2023-07-11 at 15 56 38

I've upgraded to 2.13, but now get the following error about No module named 'keras_core' when tring to import keras_cv package. This code worked last week, so has something changed on keras_cv.

Screenshot 2023-07-11 at 16 01 16 Screenshot 2023-07-11 at 16 09 57

I've tried this both on colab and my mac with the same result

Package versions: keras v2.13.1 keras-cvv0.6.0 tensorflow v2.13.0

Many thanks

Steve

shreypareek1991 commented 1 year ago

Getting the same error with v0.6.0

stephentyers1975 commented 1 year ago

Package versions: keras v2.13.1 keras-cv v0.6.0 tensorflow v2.13.0

old-school-kid commented 1 year ago

Install keras-core first in the notebook. !pip install keras-core

stephentyers1975 commented 1 year ago

!pip install keras-core

That worked :) Thanks

ianstenbit commented 1 year ago

Thanks for the report @stephentyers1975 -- we're going to update this guide soon to make this more clear.

I've also pushed release 0.6.1 which makes KerasCV compatible with TF 2.12 again. My apologies for the trouble!

stephentyers1975 commented 1 year ago

@ianstenbit Awesome, thank you for this.

ianstenbit commented 1 year ago

I'm adding keras-core as a dependency in #1949 to prevent this confusion in future releases. Closing this issue for now as it's also tracked in #1944