Giter Site home page Giter Site logo

Comments (4)

aminshabani avatar aminshabani commented on September 27, 2024

Hi again, I am using conda and I installed opencv-python as it is written in this issue, but I didn't remove my previous opencv.
Now, I am getting the following error, is it possible that it is because of an opencv conflict?!

Epoch 1/20
Traceback (most recent call last):
File "examples/train_wider.py", line 110, in
keras.callbacks.ReduceLROnPlateau(monitor='loss', factor=0.1, patience=2, verbose=1, mode='auto', epsilon=0.0001, cooldown=0, min_lr=0),
File "/home/amin/anaconda2/envs/tf/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/home/amin/anaconda2/envs/tf/lib/python2.7/site-packages/keras/engine/training.py", line 2114, in fit_generator
class_weight=class_weight)
File "/home/amin/anaconda2/envs/tf/lib/python2.7/site-packages/keras/engine/training.py", line 1826, in train_on_batch
check_batch_axis=True)
File "/home/amin/anaconda2/envs/tf/lib/python2.7/site-packages/keras/engine/training.py", line 1411, in _standardize_user_data
exception_prefix='target')
File "/home/amin/anaconda2/envs/tf/lib/python2.7/site-packages/keras/engine/training.py", line 153, in _standardize_input_data
str(array.shape))
ValueError: Error when checking target: expected regression to have shape (None, None, 4) but got array with shape (1, 105993, 5)

from keras-retinanet.

hgaiser avatar hgaiser commented on September 27, 2024

I've seen this error yesterday too .. seems to be caused by Keras 2.1.0. For now, install Keras 2.0.9 to fix this issue.

from keras-retinanet.

hgaiser avatar hgaiser commented on September 27, 2024

For reference, this is what caused it : keras-team/keras#8056 (review)

from keras-retinanet.

aminshabani avatar aminshabani commented on September 27, 2024

Yesss, thank you so much.
I installed the 2.0.9 version by conda install -c conda-forge keras and it works.

from keras-retinanet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.