Giter Club home page Giter Club logo

Comments (10)

qqwweee avatar qqwweee commented on September 7, 2024

Try training with pretrained weights several epochs first, or starting training with a much small learning rate in the first several epochs. I think it is a problem of exp overflow.

from keras-yolo3.

sunshinezhihuo avatar sunshinezhihuo commented on September 7, 2024

@Ssrzbao Hi, do you solve your problem about nan now?

from keras-yolo3.

ifeherva avatar ifeherva commented on September 7, 2024

Same issue here, I will try a lower LR

from keras-yolo3.

ifeherva avatar ifeherva commented on September 7, 2024

I also get a bunch of warning right after starting the training:
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_59 due to mismatch in shape ((1, 1, 1024, 21) vs (255, 1024, 1, 1)).
weight_values[i].shape))
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_59 due to mismatch in shape ((21,) vs (255,)).
weight_values[i].shape))
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_67 due to mismatch in shape ((1, 1, 512, 21) vs (255, 512, 1, 1)).
weight_values[i].shape))
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_67 due to mismatch in shape ((21,) vs (255,)).
weight_values[i].shape))
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_75 due to mismatch in shape ((1, 1, 256, 21) vs (255, 256, 1, 1)).
weight_values[i].shape))
/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py:3473: UserWarning: Skipping loading of weights for layer conv2d_75 due to mismatch in shape ((21,) vs (255,)).
weight_values[i].shape))

from keras-yolo3.

ifeherva avatar ifeherva commented on September 7, 2024

I tried lr of 0.0001 but still went into nan quite fast. I think it has something to do with the layers not being properly initialized (see warnings above)

from keras-yolo3.

HanYuanyuaner avatar HanYuanyuaner commented on September 7, 2024

@ifeherva Did you solve the problem? I also met it with my own dataset.

from keras-yolo3.

franklu323 avatar franklu323 commented on September 7, 2024

@ifehervaI got the same problem when training my own data, did u solve the problem about the mismatch in shape??

from keras-yolo3.

 avatar commented on September 7, 2024

@ifeherva @Ssrzbao Did you solve the problem yet?
I got same issue with coco dataset. Already used a low learning rate, but the loss value went to nan very soon and never came back...

from keras-yolo3.

elcronos avatar elcronos commented on September 7, 2024

@qqwweee Why are you closing this? I'm getting the same problem and so far I don't see any solution

from keras-yolo3.

qqwweee avatar qqwweee commented on September 7, 2024

@elcronos fixed in b7cbd24. The reason is displayed.

from keras-yolo3.

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.