keras-team / keras-cv

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

Facing error in import [Colab Notebook] #1989

Closed cosmo3769 closed 1 year ago

cosmo3769 commented 1 year ago

Running in colab.

I am getting a strange error here when I am using git clone for keras-cv and pip install for keras-core.

!pip install -qq git+https://github.com/keras-team/keras-core
!git clone https://github.com/keras-team/keras-cv.git

import keras_cv
import keras_core

Also, using pip install for both sometimes works fine and sometimes don't and give the same error as previous one.

Here is the error:

Screenshot 2023-07-28 at 6 46 58 PM

Am I missing something?

NiharJani2002 commented 1 year ago

@cosmo3769

Set The Backend because if we look at the Keras-core GitHub repo, they have mentioned configuring the backend. image

Keras-Core Github Link: https://github.com/keras-team/keras-core/tree/main

cosmo3769 commented 1 year ago

Thanks, I used this as well. But it was not working. I checked it again. I was making a mistake. When I was using git clone, I was not installing the package of keras-cv too. Installing this fixed it.