diff --git a/demo/topdown_demo_with_mmdet.py b/demo/topdown_demo_with_mmdet.py index a143795693..38f4e92e4e 100644 --- a/demo/topdown_demo_with_mmdet.py +++ b/demo/topdown_demo_with_mmdet.py @@ -213,8 +213,7 @@ def main(): if output_file: img_vis = visualizer.get_image() - if args.show: - mmcv.imwrite(mmcv.rgb2bgr(img_vis), output_file) + mmcv.imwrite(mmcv.rgb2bgr(img_vis), output_file) elif input_type in ['webcam', 'video']: