Giter Club home page Giter Club logo

onnx-yolov5's People

Contributors

hexmagic avatar yellowandgreen 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

onnx-yolov5's Issues

how to change device to gpu

Hi, I built the main.exe using one computer with RTX 3060, and I copied the debug main.exe, yolov5s.onnx, opencv_world455d.dll, coco.names, test.jpg to my laptop with GTX 950m.

I have built the main.exe successfully, and run the main yolov5s.onnx test.jpg successfully. However, I found it is using the CPU of my laptop, not the GPU, while I do have a GPU GTX 950m.

What am I missing?

windows readnetonnx errors

How to implement on Windows system?When I want to assign my own model path, I will fail to read the onnx model.
image

Unsupported ONNX opset version: 17

Hi,
I was trying to generate YOLOV5 onnx model with
python export.py --weights yolov5s.pt --include onnx
But, it turns out to be
ONNX: export failure ❌ 0.0s: Unsupported ONNX opset version: 17
So why the onnx cannot be exported with the default opset version 17?

ONNX-yolov5 works on Windows 10, but not only uBuntu (22.04)

Hi,

Thanks for sharing your code. I have a Pytorch models (*.pt) trained with custom data, and have them converted to onnx using export.py from Ultralytic's yolov5. ONNX-yolov5 works on Windows 10 as expected. Then have ONNX-yolov5 compiled and built on uBuntue 22.04 and ran it with the same onnx models, but it output incorrect bounding boxes. I am wondering if there is I have pt files converted to onnx files corrected. When running export.py I have tried with or without --simplify as suggested from one of posts on the internet. Can you suggest right tools for converting pt files to onnx files? Thanks,

CC

failed build on raspberry pi aarch64 Raspbian - [SOLVED]

i have had a problem with building so have to change CMakeLists.txt to:

cmake_minimum_required(VERSION 3.0 )
project(app)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
find_package(OpenCV REQUIRED)
include_directories(
    ${OpenCV_INCLUDE_DIRS}
    ${PROJECT_SOURCE_DIR}/include
)
add_executable(main main.cpp  src/detector.cpp src/loguru.cpp)
target_link_libraries(main  ${OpenCV_LIBS} ${CMAKE_DL_LIBS})
add_executable(test src/test.cpp)
target_link_libraries(test  ${OpenCV_LIBS} ${CMAKE_DL_LIBS})

and when converting in original yolov5 dir:
python export.py --weights yolov5s.pt --include onnx --opset 12

after that should work:
./build/main yolov5s.onnx data/images/zidane.jpg
Screenshot_1

error

image
Why do model loads always report errors?The model path has also been modified.

there is no speed up in c++ ?

i see inference time about 1,7 sec with yolov5 onnx using
./build/main yolov5s.onnx data/images/bus.jpg
Screenshot_2
almost the same inference time (1,3 sec) i see with yolov5 onnx:
Screenshot_3

there is no advantage ? or i missed something ?

Correct model input size

Hi,
I have a model trained with an input img size of 416 and a batch size of 16.
how should the code change in this case?
thank you
( I had the following error )
lllllllll

How to change batchsize

Hi, does this code only support batchsize=1 and if I want to change the batchsize, how do I start?

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.