Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
food-round2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joel Joseph
food-round2
Commits
0d74cd8f
Unverified
Commit
0d74cd8f
authored
6 years ago
by
Kai Chen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21 from hellock/docs
Add some instructions of customizing models
parents
6efefa27
6f428389
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
TECHNICAL_DETAILS.md
+44
-0
44 additions, 0 deletions
TECHNICAL_DETAILS.md
with
44 additions
and
0 deletions
TECHNICAL_DETAILS.md
+
44
−
0
View file @
0d74cd8f
...
@@ -30,6 +30,50 @@ such as `SingleStageDetector` and `TwoStageDetector`.
...
@@ -30,6 +30,50 @@ such as `SingleStageDetector` and `TwoStageDetector`.
Following some basic pipelines (e.g., two-stage detectors), the model structure
Following some basic pipelines (e.g., two-stage detectors), the model structure
can be customized through config files with no pains.
can be customized through config files with no pains.
If we want to implement some new components, e.g, the path aggregation
FPN structure in
[
Path Aggregation Network for Instance Segmentation
](
https://arxiv.org/abs/1803.01534
)
, there are two things to do.
1.
create a new file in
`mmdet/models/necks/pafpn.py`
.
```python
class PAFPN(nn.Module):
def __init__(self,
in_channels,
out_channels,
num_outs,
start_level=0,
end_level=-1,
add_extra_convs=False):
pass
def forward(self, inputs):
# implementation is ignored
pass
```
2.
modify the config file from
```python
neck=dict(
type='FPN',
in_channels=[256, 512, 1024, 2048],
out_channels=256,
num_outs=5)
```
to
```python
neck=dict(
type='PAFPN',
in_channels=[256, 512, 1024, 2048],
out_channels=256,
num_outs=5)
```
We will release more components (backbones, necks, heads) for research purpose.
### Write a new model
### Write a new model
To write a new detection pipeline, you need to inherit from
`BaseDetector`
,
To write a new detection pipeline, you need to inherit from
`BaseDetector`
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment