iwatake2222 / play_with_tensorrt

Sample projects for TensorRT in C++
Apache License 2.0
190 stars 34 forks source link

Inference helper is not created #20

Closed Surtr07 closed 2 years ago

Surtr07 commented 2 years ago

Environment (Hardware)

HARDWARE:jetson Orin cuda:11.4 tensorrt 8.2

Project Name

play with tensorrt_hitnet

Issue Details

when I run the main ,I got this problem, what should I do?

[InferenceHelper][117] Use TensorRT [08/02/2022-17:25:46] [I] [TRT] [MemUsageChange] Init CUDA: CPU +303, GPU +0, now: CPU 327, GPU 12344 (MiB) [08/02/2022-17:25:46] [I] [TRT] [MemUsageChange] Init CUDA: CPU +0, GPU +0, now: CPU 346, GPU 12362 (MiB) [08/02/2022-17:25:48] [I] [TRT] [MemUsageChange] Init builder kernel library: CPU +403, GPU +380, now: CPU 749, GPU 12741 (MiB) Could not open file /home/nvidia/Downloads/play_with_tensorrt-master/pj_tensorrt_depth_stereo_hitnet/build/resource//model/hitnet_eth3d_480x640.onnx Could not open file /home/nvidia/Downloads/play_with_tensorrt-master/pj_tensorrt_depth_stereo_hitnet/build/resource//model/hitnet_eth3d_480x640.onnx [08/02/2022-17:25:48] [E] [TRT] ModelImporter.cpp:705: Failed to parse ONNX model from file: /home/nvidia/Downloads/play_with_tensorrt-master/pj_tensorrt_depth_stereo_hitnet/build/resource//model/hitnet_eth3d_480x640.onnx [ERR: InferenceHelperTensorRt][149] Failed to parse onnx file (/home/nvidia/Downloads/play_with_tensorrt-master/pj_tensorrt_depth_stereo_hitnet/build/resource//model/hitnet_eth3d_480x640.onnx)[ERR: DepthStereoEngine][89] Inference helper is not created Initialization Error

iwatake2222 commented 2 years ago

Please make sure /home/nvidia/Downloads/play_with_tensorrt-master/pj_tensorrt_depth_stereo_hitnet/build/resource//model/hitnet_eth3d_480x640.onnx exists.