-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re: detectron2 not predicting results #15
Comments
You are not using correct model weights. Download the weights from the link in the README file. |
Thanks for your quick response. Will look at it again and revert |
Not yet able to resolve ;( . I downloaded model and save it in a trainedmodels folder and run comand: python demo/demo.py --config-file configs/DLA_mask_rcnn_R_101_FPN_3x.yaml --input "1.png" --output "./testt.png" --confidence-threshold 0.5 --opts MODEL.WEIGHTS "./trainedmodels/R-101.pkl" MODEL.DEVICE cpu Got log as: Please help...... |
Try downloading "model_final_trimmed.pth" from this link https://www.dropbox.com/sh/wgt9skz67usliei/AAD9n6qbsyMz1Y3CwpZpHXCpa?dl=0 |
All the models are in dropbox as of now. You could ask your network admin to download this file for you. |
hi, there, first of all, what u have done is really cool and thanks for sharing! :) |
Hi, i am also new to all this. I too ran the command: But got error log. As i cannot access dropbox can you please help me from this link which model i should download for document analysis. Your help will be appreciated. Thanks. Kindly help |
Thanks, Whereas this repo contains custom trained models that are specifically used for document layout analysis. Also config files DLA_* should be used only with these models and not with original detectron2 models. There a 3 custom trained models as of now. Mask RCNN Resnet50, Resnet101 and Resnext101 and each of these have a associated config file. |
You have to download the weights from the first table in https://github.com/hpanwar08/detectron2/blob/master/README.md, but these models are in dropbox. I don't have any other cloud storage. If you have any, I could copy one of the model there. |
thanks @hpanwar08 ...it's working :) . Thanks a lot! |
Thanks @hpanwar08. I am able to download the model. |
can you share the model to baidu netpan. because i can't download it from the dropbox. |
Hi,
I am trying to predict titles, tables and text in an input image.
I used the command :
python demo/demo.py --config-file configs/DLA_mask_rcnn_R_101_FPN_3x.yaml --input "1.png" --output "./testt.png" --confidence-threshold 0.5 --opts MODEL.WEIGHTS "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x/138205316/model_final_a3ec72.pkl" MODEL.DEVICE cpu
The command runs with the following logs and returns true at the end.
Config './configs/DLA_mask_rcnn_R_101_FPN_3x.yaml' has no VERSION. Assuming it to be compatible with latest v2.
'roi_heads.box_predictor.cls_score.weight' has shape (81, 1024) in the checkpoint but (6, 1024) in the model! Skipped.
'roi_heads.box_predictor.cls_score.bias' has shape (81,) in the checkpoint but (6,) in the model! Skipped.
'roi_heads.box_predictor.bbox_pred.weight' has shape (320, 1024) in the checkpoint but (20, 1024) in the model! Skipped.
'roi_heads.box_predictor.bbox_pred.bias' has shape (320,) in the checkpoint but (20,) in the model! Skipped.
'roi_heads.mask_head.predictor.weight' has shape (80, 256, 1, 1) in the checkpoint but (5, 256, 1, 1) in the model! Skipped.
'roi_heads.mask_head.predictor.bias' has shape (80,) in the checkpoint but (5,) in the model! Skipped.
However, the output file remains unchanged with no bounding boxes or labels getting predicted. Can anyone guide why it's happening so.
Kindly help.
Thanks!
The text was updated successfully, but these errors were encountered: