GithubHelp home page GithubHelp logo

dsbyprateekg / yolov4 Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 10.0 2.07 MB

Added jupyter notebook code to convert YOLOv4 weights to TensorFlow 2.2.0 version

Home Page: http://dsbyprateekg.blogspot.com/2020/05/how-to-install-and-compile-yolo-v4-with.html

Jupyter Notebook 100.00%

yolov4's People

Contributors

dsbyprateekg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yolov4's Issues

Error when trying to load the h5 model saved

Hi, thanks so much for the blog and the repo.
I tried to follow every step in ipynb, however I get the following error when trying to load the saved model.
Any idea how to solve this issue?
issue

TypeError: 'tensorflow.python.framework.ops.EagerTensor' object does not support item assignment

Hi, I was having the followed error running your code:


TypeError Traceback (most recent call last)
in
7 for i in range(len(anchors)):
8 # decode the output of the network
----> 9 boxes += decode_netout(prediction[i][0], anchors[i], obj_thresh, input_h, input_w, len(anchors), scales_x_y[i])
10
11 print("nb boxes detected; ",len(boxes))

in decode_netout(netout, anchors, obj_thresh, net_h, net_w, anchors_nb, scales_x_y)
38
39 boxes = []
---> 40 netout[..., :2] = _sigmoid(netout[..., :2]) # x, y
41 netout[..., :2] = netout[..., :2]scales_x_y - 0.5(scales_x_y - 1.0) # scale x, y
42

TypeError: 'tensorflow.python.framework.ops.EagerTensor' object does not support item assignment

the "prediction" is the 'yhat' in your original notebook.

Getting error while executing do_nms(boxes, 0.5) cell

I am using my own custom YOLOv4 weights file which i trained to detect 3 objects in the images.
When i am trying to execute cell where we have to call do_nms(boxes, nms_thresh) function then it is throwing error ZeroDivisionError: float division by zero . Here is a screenshot of the error
error

How to train this model ?

Hi there!
Great work, I like this workbook! I just study Yolo and I'd like to train this model on my own dataset. how can I du this ? which format of tensor I should provide to the model.
Thanks!

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.