[Bug] use mmrazor/main/tools/visualizations/feature_diff_visualization.py error: inference_mot() missing 2 required positional arguments: 'frame_id' and 'video_len' #624
Labels
bug
Something isn't working
Describe the bug
A clear and concise description of what the bug is.
使用mmrazor/main/tools/visualizations/feature_diff_visualization.py对mmdetection中faster-rcnn可视化时,提示需有frame_id,video_len。原因在于该文件line93为'inference_'而在mmdetection的api中有'inference_detector'、'inference_mot',可能默认加载了'inference_mot',导致了对单张图片可视化时需要额外的frame_id,video_len参数
When using mmrazor/main/tools/visualizations/feature_visualization.py to visualize faster-rcnn in mmdetection, there is a prompt asking for frame_id and video_len. The reason for this is that line 93 of the file is 'inference_', while mmdetection's API provides 'inference_detector' and 'inference_mot', possibly defaulting to 'inference_mot', which requires additional frame_id and video_len parameters when visualizing a single image.
The error:
To Reproduce
The command you executed.
Post related information
pip list | grep "mmcv\|mmrazor\|^torch"
Your config file if you modified it or created a new one.
Your train log file if you meet the problem during training.
no
Other code you modified in the
mmrazor
folder.no, just
ln -s mmdetetion ./mmrazor/mmdetection
. (Soft-link the mmdetection library into mmrazor)Additional context
Add any other context about the problem here.
[here]
The text was updated successfully, but these errors were encountered: