STDC-Seg
STDC-Seg copied to clipboard
error in running run_latency_stages.py
I got the following error when running python ./run_latency_stages.py:
[TensorRT] ERROR: Network must have at least one output
[TensorRT] ERROR: Network validation failed.
Traceback (most recent call last):
File "./run_latency_stages.py", line 100, in
Any idea why this happens?
Thanks,
@MichaelFan01
Can you help?
Thanks,
@MichaelFan01
Can you help?
Thanks,
I can not help, cause TensorRT in Python language do not feedback the error reason. But If you want to debug your problem , I recommand you to use TensorRT in C++ langage, which feedback the error reason in detail.
@fjremnav Have you solved this? I come up with the same error
@fjremnav Have you solved this? I come up with the same error
this helps me out
https://github.com/NVIDIA/TensorRT/issues/183#issuecomment-657673563
this helps me out
I tried to change the build_engine in latency/utils/darts_utils.py as the following.
def build_engine(model_file):
explicit_batch = 1 << (int)(trt.NetworkDefinitionCreationFlag.EXPLICIT_BATCH)
with trt.Builder(TRT_LOGGER) as builder, builder.create_network(explicit_batch) as network, trt.OnnxParser(network, TRT_LOGGER) as parser:
I am not sure if I'm doing it right. But it seems not working. Could you give me some suggestion? Thank you.