Skip to content

Commit

Permalink
merge minkunet
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjiahao1999 committed Mar 24, 2023
2 parents 3c9e898 + ee6cc04 commit 445f58a
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .dev_scripts/benchmark_full_models.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
configs/3dssd/3dssd_4xb4_kitti-3d-car.py
configs/centerpoint/centerpoint_pillar02_second_secfpn_head-dcn_8xb4-cyclic-20e_nus-3d.py
configs/dynamic_voxelization/second_dv_secfpn_8xb2-cosine-80e_kitti-3d-3class.py
configs/fcaf3d/fcaf3d_2xb8_s3dis-3d-5class.py
configs/fcos3d/fcos3d_r101-caffe-dcn_fpn_head-gn_8xb2-1x_nus-mono3d.py
configs/free_anchor/pointpillars_hv_regnet-1.6gf_fpn_head-free-anchor_sbn-all_8xb4-strong-aug-3x_nus-3d.py
configs/groupfree3d/groupfree3d_head-L6-O256_4xb8_scannet-seg.py
configs/h3dnet/h3dnet_8xb3_scannet-seg.py
configs/imvotenet/imvotenet_faster-rcnn-r50_fpn_4xb2_sunrgbd-3d.py
configs/imvotenet/imvotenet_stage2_8xb16_sunrgbd-3d.py
configs/imvoxelnet/imvoxelnet_8xb4_kitti-3d-car.py
configs/mvxnet/mvxnet_fpn_dv_second_secfpn_8xb2-80e_kitti-3d-3class.py
configs/paconv/paconv_ssg_8xb8-cosine-150e_s3dis-seg.py
configs/parta2/parta2_hv_secfpn_8xb2-cyclic-80e_kitti-3d-3class.py
configs/pgd/pgd_r101-caffe_fpn_head-gn_4xb3-4x_kitti-mono3d.py
configs/point_rcnn/point-rcnn_8xb2_kitti-3d-3class.py
configs/pointnet2/pointnet2_msg_2xb16-cosine-80e_s3dis-seg.py
configs/pointnet2/pointnet2_msg_2xb16-cosine-250e_scannet-seg.py
configs/pointpillars/pointpillars_hv_fpn_sbn-all_8xb2-2x_lyft-3d.py
configs/pointpillars/pointpillars_hv_secfpn_sbn-all_16xb2-2x_waymoD5-3d-3class.py
configs/pv_rcnn/pv_rcnn_8xb2-80e_kitti-3d-3class.py
configs/regnet/pointpillars_hv_regnet-1.6gf_fpn_sbn-all_8xb4-2x_nus-3d.py
configs/second/second_hv_secfpn_8xb6-80e_kitti-3d-3class.py
configs/second/second_hv_secfpn_8xb6-amp-80e_kitti-3d-3class.py
configs/smoke/smoke_dla34_dlaneck_gn-all_4xb8-6x_kitti-mono3d.py
configs/ssn/ssn_hv_secfpn_sbn-all_16xb2-2x_lyft-3d.py
configs/votenet/votenet_8xb8_scannet-3d.py
11 changes: 11 additions & 0 deletions .dev_scripts/benchmark_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) OpenMMLab. All rights reserved.

third_part_libs = [
'conda install openblas-devel -c anaconda',
"pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --install-option='--blas_include_dirs=/opt/conda/include' --install-option='--blas=openblas'" # noqa
]
default_floating_range = 0.5
model_floating_ranges = {
'configs/pointpillars/pointpillars_hv_secfpn_sbn-all_16xb2-2x_waymoD5-3d-3class.py': # noqa
0.7
}
15 changes: 15 additions & 0 deletions .dev_scripts/benchmark_train_models.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
configs/3dssd/3dssd_4xb4_kitti-3d-car.py
configs/centerpoint/centerpoint_pillar02_second_secfpn_head-dcn_8xb4-cyclic-20e_nus-3d.py
configs/dynamic_voxelization/second_dv_secfpn_8xb2-cosine-80e_kitti-3d-3class.py
configs/fcos3d/fcos3d_r101-caffe-dcn_fpn_head-gn_8xb2-1x_nus-mono3d.py
configs/mvxnet/mvxnet_fpn_dv_second_secfpn_8xb2-80e_kitti-3d-3class.py
configs/point_rcnn/point-rcnn_8xb2_kitti-3d-3class.py
configs/pointnet2/pointnet2_msg_2xb16-cosine-80e_s3dis-seg.py
configs/pointnet2/pointnet2_msg_2xb16-cosine-250e_scannet-seg.py
configs/pointpillars/pointpillars_hv_fpn_sbn-all_8xb2-2x_lyft-3d.py
configs/pointpillars/pointpillars_hv_secfpn_sbn-all_16xb2-2x_waymoD5-3d-3class.py
configs/pv_rcnn/pv_rcnn_8xb2-80e_kitti-3d-3class.py
configs/second/second_hv_secfpn_8xb6-80e_kitti-3d-3class.py
configs/second/second_hv_secfpn_8xb6-amp-80e_kitti-3d-3class.py
configs/smoke/smoke_dla34_dlaneck_gn-all_4xb8-6x_kitti-mono3d.py
configs/votenet/votenet_8xb8_scannet-3d.py
139 changes: 139 additions & 0 deletions docs/en/notes/contribution_guides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# Contribution Guide

OpenMMLab welcomes everyone who is interested in contributing to our projects and accepts contribution in the form of PR.

## What is PR

`PR` is the abbreviation of `Pull Request`. Here's the definition of `PR` in the [official document](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) of Github.

```
Pull requests let you tell others about changes you have pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch.
```

## Basic Workflow

1. Get the most recent codebase

2. Checkout a new branch from `dev-1.x` or `dev` branch, depending on the version of the codebase you want to contribute to. The main differences between `dev-1.x` and `dev` is that `dev-1.x` depends on MMEngine additionally and it's the main branch we maintains. We strongly recommend you pull request based on more advanced `dev-1.x` branch.

3. Commit your changes ([Don't forget to use pre-commit hooks!](#3-commit-your-changes))

4. Push your changes and create a PR

5. Discuss and review your code

6. Merge your branch to `dev-1.x` / `dev` branch

## Procedures in detail

### 1. Get the most recent codebase

- When you work on your first PR

Fork the OpenMMLab repository: click the **fork** button at the top right corner of Github page
![avatar](https://user-images.githubusercontent.com/34888372/224920532-dc11f696-1175-436a-8c0f-1966f5ca33d1.png)

Clone forked repository to local

```bash
git clone git@github.com:XXX/mmdetection3d.git
```

Add source repository to upstream

```bash
git remote add upstream git@github.com:open-mmlab/mmdetection3d
```

- After your first PR

Checkout the latest branch of the local repository and pull the latest branch of the source repository. Here we assume that you are working on the `dev-1.x` branch.

```bash
git checkout dev-1.x
git pull upstream dev-1.x
```

### 2. Checkout a new branch from the `dev-1.x` / `dev` branch

```bash
git checkout -b branchname
```

```{tip}
To make commit history clear, we strongly recommend you checkout the `dev-1.x` branch before creating a new branch.
```

### 3. Commit your changes

- If you are a first-time contributor, please install and initialize pre-commit hooks from the repository root directory first.

```bash
pip install -U pre-commit
pre-commit install
```

- Commit your changes as usual. Pre-commit hooks will be triggered to stylize your code before each commit.

```bash
# coding
git add [files]
git commit -m 'messages'
```

```{note}
Sometimes your code may be changed by pre-commit hooks. In this case, please remember to re-stage the modified files and commit again.
```

### 4. Push your changes to the forked repository and create a PR

- Push the branch to your forked remote repository

```bash
git push origin branchname
```

- Create a PR
![avatar](https://user-images.githubusercontent.com/34888372/224922548-69455db9-68d1-4d92-a007-afcd2814b1c1.png)

- Revise PR message template to describe your motivation and modifications made in this PR. You can also link the related issue to the PR manually in the PR message (For more information, checkout the [official guidance](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)).

- Specifically, if you are contributing to `dev-1.x`, you will have to change the base branch of the PR to `dev-1.x` in the PR page, since the default base branch is `master`.

![avatar](https://user-images.githubusercontent.com/34888372/224923009-1d611a30-0bfc-4fe5-93a2-96cc88a18886.png)

- You can also ask a specific person to review the changes you've proposed.
### 5. Discuss and review your code
- Modify your codes according to reviewers' suggestions and then push your changes.

### 6. Merge your branch to the `dev-1.x` / `dev` branch and delete the branch

- After the PR is merged by the maintainer, you can delete the branch you created in your forked repository.

```bash
git branch -d branchname # delete local branch
git push origin --delete branchname # delete remote branch
```

## PR Specs

1. Use [pre-commit](https://pre-commit.com) hook to avoid issues of code style

2. One short-time branch should be matched with only one PR

3. Accomplish a detailed change in one PR. Avoid large PR

- Bad: Support Faster R-CNN
- Acceptable: Add a box head to Faster R-CNN
- Good: Add a parameter to box head to support custom conv-layer number

4. Provide clear and significant commit message

5. Provide clear and meaningful PR description

- Task name should be clarified in title. The general format is: \[Prefix\] Short description of the PR (Suffix)
- Prefix: add new feature \[Feature\], fix bug \[Fix\], related to documents \[Docs\], in developing \[WIP\] (which will not be reviewed temporarily)
- Introduce main changes, results and influences on other modules in short description
- Associate related issues and pull requests with a milestone

0 comments on commit 445f58a

Please sign in to comment.