ffmpeg avi 转 MP4
摘要:ffmpeg -y -i testWen01.avi -c:v libx264 -crf 19 -preset slow -c:a aac -b:a 192k -ac 2 testWen011.mp4 进入cmd命令行窗口运行上面命令
阅读全文
posted @
2022-04-26 17:57
WenJXUST
阅读(420)
推荐(0) 编辑
yolo5s kmeans 聚类生成候选框(anchor)
摘要:1、pycharm 打开终端Terminal,输入python,进入python环境; 2、输入:from utils.autoahchor import kmean_anchors ,导入函数kmeans_anchors; 3、输入:kmean_anchors('./data/phone.yaml
阅读全文
posted @
2022-04-25 16:35
WenJXUST
阅读(1102)
推荐(0) 编辑
yolo5s,nanodet,picodet微调(finetune)冻结设置
摘要:1、yolov5 参数设置--freeze: --data phone.yaml --cfg yolov5s.yaml --weights yolov5s.pt --batch-size 32 --freeze 10 2、nanodet task.py def __init__(self, cfg,
阅读全文
posted @
2022-04-20 10:51
WenJXUST
阅读(727)
推荐(0) 编辑
centos 编译C++出现问题(error: ‘shared_ptr’ is not a member of ‘std’ )
摘要:1、cmake编译C++程序,出现错误:error: ‘shared_ptr’ is not a member of ‘std’ 解决:在CMakeLists.txt中修改,增加 -std=c++0x;在头文件增加#include<memory> set(CMAKE_CXX_FLAGS "${CMA
阅读全文
posted @
2022-04-13 14:00
WenJXUST
阅读(1651)
推荐(0) 编辑
ncnn模型 与 pytorch模型不一致问题解决
摘要:0、背景 pytorch转onnx转ncnn模型后,C++调用ncnn模型输出结果跟python调用pytorch模型结果不一样 1、解决 model.param 修改,reshape,改-1自适应大小,根据图片长宽比,不一定是80*80(6400),40*40(1600),20*20(400),所
阅读全文
posted @
2022-04-08 18:20
WenJXUST
阅读(523)
推荐(0) 编辑
ncnn::Mat opencv::Mat 互转
摘要:nihui 写的:https://github.com/Tencent/ncnn/wiki/use-ncnn-with-opencv 1、cv::Mat转ncnn::Mat cv::Mat bgr = cv::Mat(img_h,img_w,CV_8UC3); ncnn::Mat in = ncnn
阅读全文
posted @
2022-04-06 11:59
WenJXUST
阅读(1585)
推荐(0) 编辑