Git Product home page Git Product logo

Comments (7)

bgamini avatar bgamini commented on May 13, 2024 2

You can pass —model yolov4, because default is yolov3

I'm so sorry, In my case, YOLO.CLASSES value was wrong. I changed it and problem solved.
But another error occurred:
InvalidArgumentError: Input to reshape is a tensor with 1472880 values, but the requested shape has 103968
I solved it too, by adding cv2.resize after cv2.imread in detect.py.

from tensorflow-yolov4-tflite.

zcdliuwei avatar zcdliuwei commented on May 13, 2024 1

You can pass —model yolov4, because default is yolov3

Yes, the problem has been solved. The model can work normally. Your work is amazing. I am a beginner of computer vision. I will study your code carefully in the next few days and train yolov4 on my own dataset,thanks

from tensorflow-yolov4-tflite.

hunglc007 avatar hunglc007 commented on May 13, 2024

@bgamini
What model do you use ?
What pretrained weight do you use ?

from tensorflow-yolov4-tflite.

bgamini avatar bgamini commented on May 13, 2024

I downloaded weights from AlexeyAB's repository, from this link:
https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights
Note: I'm trying on detect.py with default arguments.

from tensorflow-yolov4-tflite.

hunglc007 avatar hunglc007 commented on May 13, 2024

You can try this command
python detect.py --weights ./data/yolov4.weights --framework tf --model yolov4 --size 608 --image your_image_path

from tensorflow-yolov4-tflite.

zcdliuwei avatar zcdliuwei commented on May 13, 2024

Hi,
I also get 'failed to read all data' error when I follow your tutorial exactly:
assert len(wf.read()) == 0, 'failed to read all data'
when I run the evaluate.py like below:
python evaluate.py --weights ./data/yolov4.weights

I wonder where I'm wrong

from tensorflow-yolov4-tflite.

hunglc007 avatar hunglc007 commented on May 13, 2024

You can pass —model yolov4, because default is yolov3

from tensorflow-yolov4-tflite.

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.