open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
28.5k stars 9.28k forks source link

Progress bar in in DetInferencer API #11755

Closed anisfakhfakh closed 1 month ago

anisfakhfakh commented 1 month ago
from mmdet.apis import DetInferencer

inferencer = DetInferencer('rtmdet_tiny_8xb32-300e_coco')

result = inferencer('image.jpg')

The code shows a loading bar lke this: Inference ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

how can I avoid printing it?