question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue about yolov4-tiny

See original GitHub issue

Hi, this is Sunny.

First of all, I must say you have done a wonderful job ~ Really amazing of your work ~ Well done !!!

So far I have tested the yolov4 and get a good result as follows: result

Then when I use the yolov4-tiny.weight from this website (https://github.com/AlexeyAB/darknet), it showed a very different result: result-tiny

In addition, when I tried to convert this yolov4-tiny to tflite file and I get the following error:

python convert_tflite.py --weights C:/XXXXX/checkpoints/yolov4-tiny-416 --output C:/XXXX/checkpoints/yolov4-tiny-416.tflite

image

I am using anaconda 1.9.12, Python 3.7.6 and tensorflow-gpu 2.2.0

Can I know which part might get error and any possible solution for this ?

Thank you very much and wish you have a great day ~

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

3reactions
MC1016commented, Jul 28, 2020

Hi, this is Sunny.

First of all, I must say you have done a wonderful job ~ Really amazing of your work ~ Well done !!!

So far I have tested the yolov4 and get a good result as follows: result

Then when I use the yolov4-tiny.weight from this website (https://github.com/AlexeyAB/darknet), it showed a very different result: result-tiny

In addition, when I tried to convert this yolov4-tiny to tflite file and I get the following error:

python convert_tflite.py --weights C:/XXXXX/checkpoints/yolov4-tiny-416 --output C:/XXXX/checkpoints/yolov4-tiny-416.tflite

image

I am using anaconda 1.9.12, Python 3.7.6 and tensorflow-gpu 2.2.0

Can I know which part might get error and any possible solution for this ?

Thank you very much and wish you have a great day ~

hi,Have you trained yoloV4-tiny successfully in this model? i met this problem Restoring weights from: ./data/yolov4-tiny.weights … Traceback (most recent call last): File “train.py”, line 171, in <module> app.run(main) File “C:\Users\win10\Anaconda3\lib\site-packages\absl\app.py”, line 299, in run _run_main(main, args) File “C:\Users\win10\Anaconda3\lib\site-packages\absl\app.py”, line 250, in _run_main sys.exit(main(argv)) File “train.py”, line 163, in main for image_data, target in trainset: File “E:\tensorflow-yolov4-tflite-master\core\dataset.py”, line 122, in next self.train_output_sizes[2], IndexError: index 2 is out of bounds for axis 0 with size 2

2reactions
alphapibetacommented, Jul 15, 2020

@VtlNmnk Matter of fact, I did go through the README.md, but the issue that I was facing was:

OSError: Unable to create file (Unable to open file: name = 'checkpoints/yolov4-416', errno = 2, error message = 'no such file or directory', flags = 13, o_flags = 302)

The issue was resolved by installing the latest version of Tensorflow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object detection based on Yolov4-Tiny and Improved ...
The core idea of Yolo is that target detection is regarded as regression problem. The size of the input image is cropped to...
Read more >
Improved YOLOv4-tiny network for real-time electronic ...
First, to address the problem of high similarity between various types of electronic components, an improved cross-entropy function is used to ...
Read more >
yolov4-tiny problems with different input size - Luxonis
It seems that the generated blob model has not the correct input dimensions, but I cannot find anything that could be changed in...
Read more >
GCS-YOLOV4-Tiny: A lightweight group convolution network ...
proposed the Feature Pyramid Network (FPN) to solve the general problem that the detection positions of many object detection algorithms are located in...
Read more >
Improving YOLOv4-Tiny's Construction Machinery and ... - MDPI
[13] applied YOLO version 4 (YOLOv4) to the multitarget detection of aerial images to improve the generalizability of YOLO for problems of many...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found