question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Providing a Proposal File

See original GitHub issue

Hi there,

I was able to train a mask RCNN on my data set but run into problems when I run

python2 tool/test_net.py --cfg config/12_2017_baselines/MY_VERSION_OF_mask_rcnn_R-50-C4_sx.yaml

The error I get is

cfg.TEST.PROPOSAL_FILE = cfg.TEST.PROPOSAL_FILES[i] IndexError: tuple index out of range

I assume this arises because I did not specify a proposal file. My question is: in which format can I provide a proposal file for a private dataset?

Thanks, Christian

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
ir413commented, Jun 7, 2018

Hi @chrisby, we expect the proposals for a dataset to be provided in a pkl file that contains a serialized proposals dictionary with the following entries:

proposals.keys() - ['cfg', 'ids', 'scores', 'boxes']

where

proposals['cfg'] - config used to compute the proposals
proposals['ids][i] - id for the i-th image
proposals['scores'][i] - ndarray (N_i,) containing scores for the proposals in the i-th image
proposals['boxes'][i]  - ndarray (N_i, 4) containing coordinates (x1, y1, x2, y2) for the proposals in the i-th image

It may be instructive to download one of the proposal files from the Model Zoo and inspect it interactively. You may also find it useful to look at _add_proposals_from_file to see how proposals get loaded from file and rpn_generator to see how RPN proposals get computed and stored to a pkl file.

If you require proposals for COCO classes, you can use one of the RPN models from the Model Zoo to compute (and store in the expected format) the proposals for your dataset.

We plan to add the information about the proposals file format to the documentation in the future. In the meantime, let us know if the above is unclear.

2reactions
chrisbycommented, Feb 19, 2018

Thanks, that’s already very helpful! I think I will use one of the baseline RPNs to compute the proposal file an subsequently link it to my dataset.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write a Proposal and Get What You Want (Free ...
Writing a Proposal: Step-by-Step Guide ; 1. Planning: ; 2. Sketch your problem or point of improvement ; 3. Sketch your proposed solution...
Read more >
How to Write a Winning Business Proposal [Updated 2021]
A winning business proposal generally begins with an in-depth findings discussion call or meeting. If possible, the writer should directly ...
Read more >
How to Write a Business Proposal [Examples + Template]
This is where you provide a summary of the issue impacting the potential client. It provides you with the opportunity to show them...
Read more >
How to Write a Project Proposal (Steps & Template Included)
Learn how to a stellar project proposal. See the bets format, typical sections, best practices and even get a free template.
Read more >
How to write a proposal email - Flowrite
Our business proposal email samples and a proposal email template will ... Proposal emails are typically actioned at stage 2 and provide the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found