2022年5月17日
摘要: img = img / 255; img = img - cv::Scalar(0.5f,0.5f,0.5f); img = img / cv::Scalar(0.5f, 0.5f, 0.5f); 阅读全文
posted @ 2022-05-17 17:20 WenJXUST 阅读(700) 评论(0) 推荐(0)
  2022年5月13日
摘要: 0、版本错误 查看每个版本说明下载安装相关库,类似这种:onnx-tensorflow/support_status_v1_10_0.md at main · onnx/onnx-tensorflow (github.com) 1、RuntimeError: Resize coordinate_tr 阅读全文
posted @ 2022-05-13 16:17 WenJXUST 阅读(560) 评论(0) 推荐(0)
摘要: pip install onnx-simplifier -i https://mirror.baidu.com/pypi/simple 0、安装如上; 1、用法命令 onnxsim 12345.onnx 12345sim.onnx --input-shape 1,3,512,512 2、出现op错误 阅读全文
posted @ 2022-05-13 09:17 WenJXUST 阅读(2638) 评论(0) 推荐(0)
  2022年4月26日
摘要: 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 阅读(437) 评论(0) 推荐(0)
  2022年4月25日
摘要: 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 阅读(1193) 评论(0) 推荐(0)
  2022年4月20日
摘要: 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 阅读(794) 评论(0) 推荐(0)
  2022年4月13日
摘要: 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 阅读(1750) 评论(0) 推荐(0)
  2022年4月8日
摘要: 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 阅读(580) 评论(0) 推荐(0)
  2022年4月6日
摘要: 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 阅读(1679) 评论(0) 推荐(0)
  2022年3月29日
摘要: @echo set path=./frameR/frame%%04d.jpg ffmpeg.exe -y -framerate 10 -i %path% frameR.mp4 Pause 注意:%%,一个%会被解释成批处理%命令,必须两个% 阅读全文
posted @ 2022-03-29 11:52 WenJXUST 阅读(86) 评论(0) 推荐(0)