Comments (4)
Hello, the 27 channels you mentioned are implemented in C++to facilitate the conversion of 3x3 convolution calculation to 1x1 convolution calculation. Not related to the training program. If you want to train single channel pictures, you can change the input channel of head from 3 to 1 of the conv_head
.
from libfacedetection.train.
您好,您提到的 27 个通道都是在 C++ 中实现的,以促进 3x3 卷积计算到 1x1 卷积计算的转换。与培训计划无关。如果要训练单通道图片,可以将头部的输入通道从 3 个更改为 1 个。
conv_head
如果训练单通道图像完成,怎么转换模型到cpp里面?需要改哪些参数么
from libfacedetection.train.
@zaidao2023 你好,以下代码是用于导出首层卷积的,如果修改为单通道图像输入可以尝试修改这部分:
libfacedetection.train/tools/yunet2cpp.py
Lines 60 to 68 in 02246e7
同时,由于输入维度改变,还要修改C++首层实现:
https://github.com/ShiqiYu/libfacedetection/blob/26afabbfb8ae3e910112c77def258328a6975744/src/facedetectcnn.cpp#L82-L125
实际上,想应用单通道图像还有一种最简单的做法,即在预处理时将单通道图像[h, w, 1] repeat到[h, w, 3]适应本项目即可。
from libfacedetection.train.
@zaidao2023 你好,以下代码是用于导出首层卷积的,如果修改为单通道图像输入可以尝试修改这部分:
libfacedetection.train/tools/yunet2cpp.py
Lines 60 to 68 in 02246e7
同时,由于输入维度改变,还要修改C++首层实现:
https://github.com/ShiqiYu/libfacedetection/blob/26afabbfb8ae3e910112c77def258328a6975744/src/facedetectcnn.cpp#L82-L125
实际上,想应用单通道图像还有一种最简单的做法,即在预处理时将单通道图像[h, w, 1] repeat到[h, w, 3]适应本项目即可。
谢谢答复
from libfacedetection.train.
Related Issues (20)
- 当转onnx的时候,验证pytorch模型推理和onnx推理时候出现问题 HOT 2
- Cannot download labelsv2 HOT 3
- nonsquare input size training and exporting HOT 1
- How to train with custom dataset by using the pretrained model? HOT 2
- where can we get datasets with key points to train Yunet?
- 最小像素点修改 HOT 1
- 图像预处理时的均值和方差为什么是[0,0,0]和[1,1,1] HOT 1
- 老师,如果在Win上配置了MMDET环境后,如何修改指令执行train.py呀? HOT 5
- Why can't I find the yunet_final.pth weight file HOT 2
- Did you try Focal loss, how about its performance ? HOT 1
- The problem has been solved
- Train on rotated images to improve landmarks. HOT 1
- pytrch2onnx convervsion issue HOT 2
- 训练完成导出C++部署不成功
- Problems installing the repo HOT 1
- Batch inference problem! HOT 1
- Not able to setup the training environment HOT 9
- 为啥数据不做归一化 HOT 1
- 带出onnx出错 HOT 1
- 使用 compare_inference.py 中的 YUNET.forward 與 cv.FaceDetectorYN.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 libfacedetection.train.