GithubHelp home page GithubHelp logo

Comments (11)

elesun2018 avatar elesun2018 commented on July 23, 2024

same problem

from keras-yolo4.

farhantandia avatar farhantandia commented on July 23, 2024

same problem with custom dataset

from keras-yolo4.

Melkeydev avatar Melkeydev commented on July 23, 2024

@elesun2018 @farhantandia any updates? I am also on this issue with the original yolov4.weights downloaded/

from keras-yolo4.

farhantandia avatar farhantandia commented on July 23, 2024

the model is successfully converted, I forgot to specify the classes.txt if you are using custom dataset.

from keras-yolo4.

Melkeydev avatar Melkeydev commented on July 23, 2024

@farhantandia I am using the stock yolov4.weight files?
When I run the convert.py, I am getting the buffer issue size. How did you resolve?

from keras-yolo4.

farhantandia avatar farhantandia commented on July 23, 2024

It also works for standard yolov4 weights in my case.

from keras-yolo4.

Melkeydev avatar Melkeydev commented on July 23, 2024

@farhantandia can you share your code?
the convert.py - specifically? Still not working for me haha

from keras-yolo4.

xellDart avatar xellDart commented on July 23, 2024

same problem, any solution?

from keras-yolo4.

Shridharpawar77 avatar Shridharpawar77 commented on July 23, 2024

This convert file is also not working please provide working codes

from keras-yolo4.

Ivan-basis avatar Ivan-basis commented on July 23, 2024

@vihari1729 @xellDart which version of keras (and TF) do you use? I faced the same error due to another version of keras that has slightly different indexing mechanism of new created layers, i.e. in my case the first Conv2D layer had name "conv2d" (in keras 2.4.0) instead of expected "conv2d_1" (in keras 2.2.4). So, some layers become missed and weights are assigned by wrong names with shift to another layers. This leads to this error when it faces with another shape of some layer.

Try to use these versions

from keras-yolo4.

benjamin2044 avatar benjamin2044 commented on July 23, 2024

In line 71(convert.py) change "conv2d_" to conv2D
if layer_name.startswith('conv2D'):

There will be warnings but the tensorflow model "yolo4_weight.h5" will be generated.

from keras-yolo4.

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.