Skip to content

Dependency issue? #2521

@johnk2hawaii

Description

@johnk2hawaii

Hi all, just discovered this great tool. I had an issue upon training the model in colab while following this example very closely

I used !pip install --upgrade git+https://github.com/keras-team/keras-cv -q ``
so I figure the dependencies are in check.

My imports are in the following order:

import os
import xml.etree.ElementTree as ET
import tensorflow as tf
import keras_cv
import keras
import requests
import zipfile

from tqdm.auto import tqdm
from tensorflow import keras
from keras_cv import bounding_box
from keras_cv import visualization

Upon executing yolo.fit I get the following error:

/usr/local/lib/python3.11/dist-packages/keras/src/models/functional.py:237: UserWarning: The structure of inputs doesn't match the expected structure.
Expected: ['keras_tensor']
Received: inputs=Tensor(shape=(8, 640, 640, 3))
warnings.warn(msg)

I am using
keras.version 3.8.0
tf.version 2.18.0
keras_cv.version .10.0
'
I read some of updated notes but I have not found the magic bullet to get this to work

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions