thangvubk / Cascade-RPN

Code for NeurIPS 2019 paper: "Cascade RPN: Delving into High-Quality Region Proposal Network with Adaptive Convolution"
Apache License 2.0
180 stars 19 forks source link

How to install the project? #21

Closed a9311072 closed 3 years ago

a9311072 commented 3 years ago

Hi,

can not found the related information by this repository? could you share more info with me? Thanks

a9311072 commented 3 years ago

I found the installation doc as below https://github.com/thangvubk/Cascade-RPN/tree/master/docs

a9311072 commented 3 years ago

Based on the installation document, I can not build this project by docker There are many issues dependency as below library

Could anyone provide the related version?

Also, how can I download the pre-trained model for this project? Thanks

thangvubk commented 3 years ago

Cascade RPN has been merged to mmdetection2, see here. Feel free to use Cascade RPN from mmdetection.

a9311072 commented 3 years ago

Thanks for the reply.

I tried to use the cascade_rpn from mmdetector, but I can not get the region proposal result by the model. Do you have any advice?


config_file = '../configs/cascade_rpn/crpn_r50_caffe_fpn_1x_coco.py' checkpoint_file = '../checkpoints/cascade_rpn_r50_caffe_fpn_1x_coco-7aa93cef.pth' model = init_detector(config_file, checkpoint_file, device='cuda:0') img = 'demo.jpg' result = inference_detector(model, img) show_result_pyplot(model, img, result)

/mmdetection/mmdet/datasets/utils.py:68: UserWarning: "ImageToTensor" pipeline is replaced by "DefaultFormatBundle" for batch inference. It is recommended to manually replace it in the test data pipeline in your config file. 'data pipeline in your config file.', UserWarning)

a9311072 commented 3 years ago

I found the issue was caused by the mmdet show_result() Also, I did a workaround-fixed to move forward, thanks