Giter VIP home page Giter VIP logo

yolo-tensorrt-gie-'s Introduction

Project YOLO-TensorRT-GIE

This code is an implementation of trained YOLO neural network used with the TensorRT framework. (YOLO : "You Only Look Once: Unified, Real-Time Object Detection" by Joseph Redmon, Santosh Divvala, Ross Girshick, Ali Farhadi).

There is issue with this implementation : for now the output of the neural network isn't good and I am currently searching for the solution if you have any idea don't hesitate to create an issue.

The ouputed result for detecting a cat is :

Data example
Example of bad detection for a cat

When the ouputed result with the very same network implemented with caffe gives :

Data example
True detection for a cat when the network is run with the caffe framework

Furthermore a different images will gives very close results. For example with a matrice of zeros the result seems to be exactly the same.

Data example
Outputed detection for a matrice of zeros

UPDATE :

As pointed out by AastaLLL at https://devtalk.nvidia.com/default/topic/990426/jetson-tx1/tensorrt-yolo-inference-error/post/5087820/ the leaky relu layer was not supported by TensorRT and should be remplaced by standard-relu+scale+eltwise to approximate it. The results with the modified prototxt (yolo_small_modified.prototxt) are the following :

The 32 bits versions of tensorRT gives similar results to caffe results with yolov1-small.

Data example
Example of the 32 bits detection with modified prototxt

But the result of the 16 bits version of tensorRT does not gives correct detections :

Data example
Example of the 16 bits detection with modified prototxt

Data example
Example of the 16 bits detection with modified prototxt with a matrice of zeros

yolo-tensorrt-gie-'s People

Contributors

tlesort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yolo-tensorrt-gie-'s Issues

about tensorRT

I notice that the tensorRT is a c++ inference, but many blog and introduce infer that it is work on Ubuntu, is it not support windows?

Using Yolo Tiny or Yolo

Hi I cannot run Yolo Tiny or Yolo Small network using this. Can you help me with this.

Thanks,

Errors compiling: g++ YOLODetector.cpp -o exit

I got these types of errors:

/usr/include/c++/5/bits/stl_algobase.h:340:18: error: ambiguous overload for ‘operator=’ (operand types are ‘cv::Mat’ and ‘cv::Mat’) *__result = *__first;

Caffemodel was successfully turned out, but it went wrong when running YOLODetector

Hi,
Caffemodel was successfully turned out, but it went wrong when running YOLODetector

Parameter check failed in addPooling, condition: windowSize.h > 0 && windowSize.w > 0 && windowSize.h*windowSize.w < MAX_KERNEL_DIMS_PRODUCT
error parsing layer type Pooling index 65
YOLODetector: YOLODetector.cpp:172: int main(int, char**): Assertion `blobNameToTensor != nullptr' failed.
Aborted (core dumped)

Thank you for your help

molyswu

YOLO-v3

您好,我想用您的工程在YOLO-v3上,是不是要修改检测部分的代码,具体怎么修改能给一些建议吗 @ @TLESORT

Execution timing issue.

Hi,
Am trying this implementation in Jetson TX2, where am getting the result but it takes long time. May I know the execution time in your case?

Header question for VideoGrabber

hello ,

Thanks for your project to learning about GIE,
Is VideoGrabber header will help this project to draw the bounding box?

Caffe Model

Salut,

I'm currently trying to use tensorRT with YOLO2 for object detection, Could you please share your last commit and the caffe model you are using .

Cordialement.

No detection output

Hi, thank you for your code first.
I tried both the yolo_small_deploy and modified prototxt but all didn't show any box in the cat picture. Any idea why? And where did you get the yolo_small.caffemodel?

How to generate .caffemodel file

Hi,

Was trying to reproduce your results. You have the .prototxt files included in the repo, but could you describe what the steps are you took to generate the .caffemodel file? From what darknet weights file did you start and what converter did you use to create the caffe model file (and optionally also the prototxt file)?

Thanks in advance

Missing batch normalization

Hello
I don't understand your prototxt of yolo.
You have removed all the batch normalization layer and the scale after convolution
For me a convolution is
layer {
name: "conv2d_1"
type: "Convolution"
bottom: "data"
top: "conv2d_1"
convolution_param {
num_output: 32
kernel_size: 3
stride: 1
pad : 1
}
}
layer {
name: "batch_normalization_1"
type: "BatchNorm"
bottom: "conv2d_1"
top: "conv2d_1"
batch_norm_param {
eps : 0.000001
}
}
layer {
name: "scale_1"
type: "Scale"
bottom: "conv2d_1"
top: "conv2d_1"
scale_param {
bias_term : true
}
}
layer {
name: "relu_1"
type: "ReLU"
bottom: "conv2d_1"
top: "conv2d_1"
relu_param {
negative_slope: 0.1
}
}
the batch_normalization take training parameter if y remove it for me it's doesn't work.

[convolutional]
batch_normalize=1
filters=64
size=7
stride=2
pad=1
activation=leaky

Running the demo

Hi, could you please provide instructions on how to run the code.
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.