Giter Site home page Giter Site logo

Comments (8)

y-jt avatar y-jt commented on May 29, 2024 1

#5 (comment)
你只用把,大概170多行
{
//float cx = (pdata[0] * 2.f - 0.5f + j) * stride; ///cx
//float cy = (pdata[1] * 2.f - 0.5f + i) * stride; ///cy
//float w = powf(pdata[2] * 2.f, 2.f) * anchor_w; ///w
//float h = powf(pdata[3] * 2.f, 2.f) * anchor_h; ///h
}
这段代码替换成
{
float cx = pdata[0];
float cy = pdata[1];
float w = pdata[2];
float h = pdata[3];
}

from yolov5-v6.1-opencv-onnxrun.

project-zzy avatar project-zzy commented on May 29, 2024

请问您具体注释了哪些代码?我也出现了box坐标为负数的情况,期待您的回复

from yolov5-v6.1-opencv-onnxrun.

hpc203 avatar hpc203 commented on May 29, 2024

用 官方的方式导出python export.py --weights yolov5s.pt --include torchscript onnx
里面包含了yolo层的,而我的仓库里的代码是默认onnx文件里不包含yolo层的,把代码里的yolo层decode去掉就可以的

from yolov5-v6.1-opencv-onnxrun.

gewenchao avatar gewenchao commented on May 29, 2024

用 官方的方式导出python export.py --weights yolov5s.pt --include torchscript onnx 里面包含了yolo层的,而我的仓库里的代码是默认onnx文件里不包含yolo层的,把代码里的yolo层decode去掉就可以的

请问deocde在哪呢,yolo.py里面没找到decode

from yolov5-v6.1-opencv-onnxrun.

smith-jianbo avatar smith-jianbo commented on May 29, 2024

用 官方的方式导出python export.py --weights yolov5s.pt --include torchscript onnx 里面包含了yolo层的,而我的仓库里的代码是默认onnx文件里不包含yolo层的,把代码里的yolo层decode去掉就可以的

请教一下,opencv c++版本的具体怎么修改呢

from yolov5-v6.1-opencv-onnxrun.

hpc203 avatar hpc203 commented on May 29, 2024

from yolov5-v6.1-opencv-onnxrun.

chengdashia avatar chengdashia commented on May 29, 2024

用 官方的方式导出python export.py --weights yolov5s.pt --include torchscript onnx 里面包含了yolo层的,而我的仓库里的代码是默认onnx文件里不包含yolo层的,把代码里的yolo层decode去掉就可以的

请问deocde在哪呢,yolo.py里面没找到decode

请问最后解决了吗?

from yolov5-v6.1-opencv-onnxrun.

chengdashia avatar chengdashia commented on May 29, 2024

请问您具体注释了哪些代码?我也出现了box坐标为负数的情况,期待您的回复

请问您最后解决了吗?我也出现了box坐标为负数的情况,期待您的回复

from yolov5-v6.1-opencv-onnxrun.

Related Issues (18)

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.