TextFuseNet icon indicating copy to clipboard operation
TextFuseNet copied to clipboard

Hello, How to convert the PTH model into an ONNX format model

Open wangqingl opened this issue 2 years ago • 1 comments

When I train a PTH format model and hope to convert it into an ONNX model, using ONNXRuntime for inference and deployment, I always report an error.

wangqingl avatar Sep 11 '23 07:09 wangqingl

When the code runs to image = [x["iamge"].to(self.device) for x in batch_inputs] Code error “too many indices for tensor of dimension 3”

wangqingl avatar Sep 11 '23 07:09 wangqingl