使用export_onnx.py脚本执行以下命令
python3 tools/export_onnx.py --config configs/segmentation/unet.py --ckpt float-checkpoint-best.pth.tar --onnx-name unet.onnx
/horizon_plugin_pytorch/nn/interpolate.py:69: UserWarning: default upsampling behavior when mode=bilinear is changed to align_corners=False since torch 0.4.0. Please specify align_corners=True if the old behavior is desired.
warnings.warn(
输出到这里就戛然而止了。
我以为是路径配置问题,又使用如下命令,还是一样。
python3 tools/export_onnx.py --config configs/segmentation/unet.py --ckpt tmp_models/dwunet_seg/float-checkpoint-best.pth.tar --onnx-name tmp_models/dwunet_seg/unet.onnx
所以如何将float-checkpoint-best.pth.tar转化为onnx模型?

