superbayes
superbayes
 自问自答,解决了,见上图
> 因为代码输入图片是动态尺寸,所以是-1,如果是固定640x640的可以不用改。 @cmdbug 大佬,就是根据你的方案解决了预测不正确的问题 但是,当我用官方提供的模型,训练我自己的数据后,结果又不正常了,debug中....
> >  自问自答,解决了,见上图 > > @superbayes 你是用Python调用的么? c++调用
show Your question by data
建议你把环境切换到pytorch,其默认NCHW,使用ncnn,tnn部署问题也比较少
你看到你的模型输入形状是[N,H,W,C]; 但是ncnn默认支持的是[N,C,H,W]. 当使用ncnn推理时,你是如何解决输入形状的转换问题的?
楼主没出来讲,我猜应该是[V5R4](https://github.com/ultralytics/yolov5/releases/tag/v4.0) 因为这和作者提交的时间对得上
i know that yolov5 support Dynamic size input
> Yea ! That would require a new kind of loader. Interesting in doing it ? ;) For programmers, I think this will be a very useful feature Imagine your...
same problem @FeiGeChuanShu 飞哥救急呀,如何将yolov5s-seg.pt(v7.0) 转换为ncnn?