Giter Site home page Giter Site logo

Comments (8)

hgaiser avatar hgaiser commented on June 26, 2024

What version of keras are you running ?

print(keras.__version__)

from keras-retinanet.

wanghuok avatar wanghuok commented on June 26, 2024

print keras.version
2.0.9
python 2.7.13

from keras-retinanet.

hgaiser avatar hgaiser commented on June 26, 2024

You can try this PR, or install keras 2.0.8. I suspect that will help with your issue.

from keras-retinanet.

wanghuok avatar wanghuok commented on June 26, 2024

Thanks, when i reinstall keras 2.0.8. that error was disappeared.
if i only want to run "Run detection on example" section, whether should i run "Train on data" section first?

from keras-retinanet.

hgaiser avatar hgaiser commented on June 26, 2024

If you load a model in your notebook then training isn't necessary.

from keras-retinanet.

wanghuok avatar wanghuok commented on June 26, 2024

Yes, i load a model "resnet50_coco_best_v1.0.0.h5".
but, when i run "Run detection on example" code, i encounter this error: "AttributeError: 'NoneType' object has no attribute 'shape'" at this line "image_batch, outputs = next(test_generator)". it seems that it didn't find any image. but my test_generator initialized successfully. please see below:

create a generator for testing data

test_generator = keras_retinanet.preprocessing.coco.CocoIterator(
'/home/wh/Downloads',
'val2017',
test_image_data_generator,
)
it outputs :
loading annotations into memory...
Done (t=0.54s)
creating index...
index created!

from keras-retinanet.

hgaiser avatar hgaiser commented on June 26, 2024

What is the structure of your COCO dataset? It should be:

/path/to/COCO/
/path/to/COCO/annotations/
/path/to/COCO/images/train2017/
/path/to/COCO/images/val2017/

from keras-retinanet.

wanghuok avatar wanghuok commented on June 26, 2024

Yeah. it works. thank you.

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.