HiSup
HiSup copied to clipboard
A problem was encountered during the testing
Thank you for this great project!
I've finished training to get a training model and now I want to test it, but when I run test.py it prompts an error and I don't know what it means?
You haven't installed the Boundary IoU API, please read the README file carefully. You have to finish the installation step before testing.
I have installed the Boundary IoU API as per README
,and modified it according to these
,But running tese.py still gives me the following error
Since the problem is the installation of boundary iou library, I suggest that you individually test the code of "from boundary_iou.coco_instance_api.coco import COCO" to make sure that it works. This part has nothing to do with our model.
I have installed the Boundary IoU API as per README
,and modified it according to these
,But running tese.py still gives me the following error
you can put the dir boundary_iou in tool/
It is recommended to install the Boundary IoU in the second way:
git clone [email protected]:bowenc0221/boundary-iou-api.git
cd boundary_iou_api
pip install -e .
It is recommended to install the Boundary IoU in the second way:
git clone [email protected]:bowenc0221/boundary-iou-api.git cd boundary_iou_api pip install -e .
yes,my fault, it is the right way, i followed the tips and it worked sucessfully! thanks for your recommend! then i want to ask how to load own trained model .pth when i run demo.py ? i don't know how to modify , please give me a tips
The function named "get_pretrained_model" is responsible for loading pretrained parameters in demo.py. The implementation is in https://github.com/SarahwXU/HiSup/blob/69e0cb3c7039bd038139ae0b95ea4ef03b2e5162/hisup/detector.py#L228C45-L228C45, which you may use as a simple example. If you want to test your own model, it is highly recommended to write your personal testing code following the test.py in the "scripts" file.