cyrusbehr / YOLOv8-TensorRT-CPP

YOLOv8 TensorRT C++ Implementation
MIT License
567 stars 69 forks source link

I meet an error when I convert an onnx model file to engin file #61

Open anzisheng opened 4 months ago

anzisheng commented 4 months ago

Hi, When I convert an inswapper_128.onnx to .engine file, two errors report the info: [network.cpp::operator()::3110] Error Code 4: Internal Error (source: kMIN dimensions in profile 0 are [1,512,0,0] but input has static dimensions [1,512].) [2024-07-10 17:25:59.803] [error] 2: [builder.cpp::buildSerializedNetwork::751] Error Code 2: Internal Error (Assertion engine != nullptr failed. ) You can download "inswapper_128.onnx" file from here: https://github.com/SumDeusVitae/FaceSwap_v01 . Would anyone can give me the idea to fix it ? Thank you.