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.

How do I add a new model?

See original GitHub issue

❓ Questions and Help

I want to add a new model which is basically Res101 maskrccn without the FPN. Does setting USE_FPN=False here https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/configs/e2e_mask_rcnn_R_101_FPN_1x.yaml ensure no use of FPN?

Would I need to change any other files? If I were to make a new .yaml file with the name e2e_mask_rcnn_R_101_1x.yaml what changes would I need to do?

Currently, I have made a new .yaml file and set USE_FPN=False, and Anchor_Strides=(16,) as per default.

However, this gives me channel mismatch error RuntimeError: Given transposed=1, weight of size [2048, 256, 2, 2], expected input[4, 256, 14, 14] to have 2048 channels, but got 256 channels instead on line: maskrcnn-benchmark/maskrcnn_benchmark/modeling/roi_heads/mask_head/roi_mask_predictors.py", line 35, in forward x = F.relu(self.conv5_mask(x))

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wesleylpcommented, Jan 21, 2019

Hi @fmassa, thanks for your quick answer! I’ve seen #346 handled the R-101-C4 backbone registration but I was unsure about ROI_BOX_HEAD.FEATURE_EXTRACTOR parameter. Thank you, again!

1reaction
fmassacommented, Nov 23, 2018

Because FPN models are generally faster, because their HEAD is much smaller than the default HEAD from C4 models.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a New Model
Adding Model Classes. In Solution Explorer, right click the Models folder, select Add, and then select Class. Screenshot that shows the Solution ...
Read more >
Adding a Model in ASP.NET MVC 5 Project Step by Step
Step 1: Open Solution Explorer and Look for the Models Folder. If Models Folder is not there, then just create a new folder:...
Read more >
Adding a model - ASP.NET Core Documentation
Create a new project with individual user accounts¶ · In the left pane, tap Web · In the center pane, tap ASP.NET Core...
Read more >
How to add a model to 🤗 Transformers?
To get started, open a New model addition issue for the model you want to see in Transformers. If you're not especially picky...
Read more >
Create a New Model
Create a New Model · Home · Select Models · Click Manage Models · Select Workspace · Click New · Name the Model...
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