mmyolo icon indicating copy to clipboard operation
mmyolo copied to clipboard

can't get visualized image with 'test.py --show-dir'

Open PancakeAwesome opened this issue 2 years ago • 2 comments

Prerequisite

🐞 Describe the bug

can't get visualized image with 'test.py --show-dir'

python tools/test.py yolox_s_fast_1xb32-300e-rtmdet-hyp_coco.py yolox_s_fast_1xb32-300e-rtmdet-hyp_coco/best_coco_bbox_mAP_70.pth --show-dir=./vis_test

Environment

sys.platform: linux Python: 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0,1,2: NVIDIA A100-SXM4-80GB CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.7, V11.7.99 GCC: gcc (GCC) 8.3.1 20190604 PyTorch: 2.0.0+cu117 TorchVision: 0.15.1+cu117 OpenCV: 4.7.0 MMEngine: 0.7.3 MMCV: 2.0.0 MMDetection: 3.0.0 MMYOLO: 0.5.0+

Additional information

No response

PancakeAwesome avatar Jun 01 '23 08:06 PancakeAwesome

I encountered a similar error, and noted that without the--show-dir that relates to the plot function will not reasoning error, plus I encountered a similar error, and noted that without -show-dir Relates to the plot function will not reasoning error

error info: renderer.draw_path_collection( SystemError: <built-in method draw_path_collection of matplotlib.backends._backend_agg.RendererAgg object at 0x7fa36759ed50> returned a result with an error set

RinggaV avatar Jul 25 '23 02:07 RinggaV

I faced a similar error. I resolved it by providing the absolute path to the target folder. I would you to include the complete path to your vis_test folder and make sure that the folder already exists before you run the test.

ZeeRizvee avatar Jun 10 '24 19:06 ZeeRizvee