Increase logging level to verbose on onnx to engine script
Browse files
onnx_to_engine-jetpack_5p1.py
CHANGED
@@ -22,11 +22,13 @@ to calibrate a TensorRT engine to run in INT8 precision.
|
|
22 |
"""
|
23 |
import numpy as np
|
24 |
from polygraphy.backend.trt import Calibrator, CreateConfig, EngineFromNetwork, NetworkFromOnnxPath, TrtRunner, save_engine, load_plugins, Profile
|
|
|
25 |
from termcolor import cprint
|
26 |
load_plugins(plugins=['libmmdeploy_tensorrt_ops.so'])
|
27 |
import cv2
|
28 |
import argparse
|
29 |
|
|
|
30 |
PREVIEW_CALIBRATOR_OUTPUT = True
|
31 |
|
32 |
def calib_data_from_video(batch_size=1):
|
|
|
22 |
"""
|
23 |
import numpy as np
|
24 |
from polygraphy.backend.trt import Calibrator, CreateConfig, EngineFromNetwork, NetworkFromOnnxPath, TrtRunner, save_engine, load_plugins, Profile
|
25 |
+
from polygraphy.logger import G_LOGGER
|
26 |
from termcolor import cprint
|
27 |
load_plugins(plugins=['libmmdeploy_tensorrt_ops.so'])
|
28 |
import cv2
|
29 |
import argparse
|
30 |
|
31 |
+
G_LOGGER.severity = G_LOGGER.VERBOSE
|
32 |
PREVIEW_CALIBRATOR_OUTPUT = True
|
33 |
|
34 |
def calib_data_from_video(batch_size=1):
|