SwinTransformer / Swin-Transformer-Object-Detection

This is an official implementation for "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows" on Object Detection and Instance Segmentation.
https://arxiv.org/abs/2103.14030
Apache License 2.0
1.79k stars 377 forks source link

Failed to debug the code with VSCode (Unavailable Break point) #198

Open wliebtzy opened 1 year ago

wliebtzy commented 1 year ago

Hello, I try to debug the inference process and monitor the variables in swin transformer object detection. When I set a break point in function "single_gpu_test" in "/Swin-Transformer-Object-Detection/mmdet/apis", it is useless. And I find that the code runs the "single_gpu_test" in "lib/python3.8/site-packages/mmdet-2.11.0-py3.8.egg/mmdet/apis". So how can I set a available break point to check the variables in "single_gpu_test"? Why is the definition of the function "single_gpu_test" in the "/Swin-Transformer-Object-Detection/mmdet/apis" but implemented in "lib/python3.8/site-packages/mmdet-2.11.0-py3.8.egg/mmdet/apis"?

Thank you!