Comments (3)
大佬你好,我将yolov4模型转化成了nnie wk文件,利用nnie-lite进行推理的时候,我修改了anchors部分,修改如下:
请问
这个函数还修改吗?如果需要,怎么修改呢?
你给的图片我看不到,yolov4和yolov3的框架是相同的,不过是对v3的子结构进行了改进,anchor部分的解析是一样的
from nnie-lite.
**parseYolov3Feature**(img_width,
img_height,
num_classes,
kBoxPerCell,
feature_index0,
conf_threshold,
anchors[0],
output0,
ids,
boxes,
confidences);
就是这个函数,您的意思这个函数是用来解析anchors的,对吗?故在yolov4下也不用做任何修改,
但是yolov4的anchors和v3的不同,这个需要根据cfg文件修改吧,我修改如下:
const std::vector<std::vectorcv::Size2f> anchors = {
{{142, 110}, {192, 243}, {459, 401}},
{{36, 75}, {76, 55}, {72, 146}},
{{12, 16}, {19, 36}, {40, 28}}};
from nnie-lite.
**parseYolov3Feature**(img_width, img_height, num_classes, kBoxPerCell, feature_index0, conf_threshold, anchors[0], output0, ids, boxes, confidences);
就是这个函数,您的意思这个函数是用来解析anchors的,对吗?故在yolov4下也不用做任何修改,
但是yolov4的anchors和v3的不同,这个需要根据cfg文件修改吧,我修改如下:
const std::vectorstd::vectorcv::Size2f anchors = {
{{142, 110}, {192, 243}, {459, 401}},
{{36, 75}, {76, 55}, {72, 146}},
{{12, 16}, {19, 36}, {40, 28}}};
不同的数据,根据目标大小预设的anchor框,肯定是需要改的,这样改可以。那个函数就是根据模型计算出的anchor的偏移量,结合anchor计算出实际box的函数。
from nnie-lite.
Related Issues (17)
- 请问nnie-lite现在支持yolov3和yolov4吗? HOT 1
- 请问能提供yolov4的支持吗?
- NNIE-lite 代码中一个技巧
- NNIE_Get_Result 偶尔会输出远超4096的值 HOT 4
- clsInfo应该把返回类别都存入吧 HOT 1
- 数据输入,量化的问题 HOT 1
- 您好,请问您这个nnie的demo能够连接摄像头吗? HOT 1
- 执行编译好的文件会报错!
- ERROR: "caffe.LayerParameter" has no field named "bn_param" HOT 4
- 能给出yolov4后处理部分的实现代码吗?
- yolov4推理不准确 HOT 8
- ParseYolov3Feature计算框和类别的得分问题
- 关于yolov5的移植问题 HOT 1
- ENet的demo编译后执行有报错,看起来是模型的关系,是否有解决的思路?
- yolov5s部署到hi3521dv200出错 HOT 4
- detect 检测时显示初始化失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nnie-lite.