Skip to content
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

create the block of eca in Dev 1.x #737

Open
wants to merge 99 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
91159a8
[Refactor] add circle ci (#438)
zytx121 Aug 2, 2022
2138584
[Refactor] clean UT (#441)
zytx121 Aug 2, 2022
0cb51bd
[Refactor] refactor DOTA Dataset&Metric (#446)
zytx121 Aug 11, 2022
45224a3
[Refactor] default runtime config (#447)
zytx121 Aug 11, 2022
9e6cc9b
[Feature] Add RotatedBoxes and QuadriBoxes data structure in mmrotate…
jbwang1997 Aug 19, 2022
fa82c72
[Refactor] refactor HRSCDataset (#457)
zytx121 Aug 23, 2022
ab17a2c
[Refactor] refactor RetinaNet based on boxlist (#472)
zytx121 Sep 9, 2022
d5c0509
[Refactor] refactor faster rcnn (#508)
zytx121 Sep 15, 2022
62063fd
[Refactor] refactor gwd&kld (#509)
zytx121 Sep 16, 2022
7b05293
[Refactor] R3Det and S2A-Net (#514)
zytx121 Sep 19, 2022
e9471a6
Refactor oriented rcnn (#515)
zytx121 Sep 21, 2022
ddee43e
Refactor roi trans & redet (#516)
zytx121 Sep 26, 2022
77917fa
[Refactor] refactor Rotated RepPoints (#523)
zytx121 Sep 27, 2022
39da1b7
[Refactor] CFA & SASM (#524)
zytx121 Sep 30, 2022
d311e33
[Refactor] oriented reppoints (#530)
zytx121 Oct 8, 2022
fa87c7c
[Refactor] CSL (#535)
zytx121 Oct 9, 2022
c0b21cd
Fix: collections import error for python3.10 (#533)
k-papadakis Oct 11, 2022
2b38917
confusion_matrix.py bugfixes (#531)
k-papadakis Oct 11, 2022
cce5b4b
[Refactor] Rotated FCOS (#543)
liuyanyi Oct 11, 2022
a40e6bd
[Refactor] kfiou (#536)
zytx121 Oct 12, 2022
975d7c5
fix channel (#545)
liuyanyi Oct 13, 2022
f551291
[Refactor] Gliding vertex (qbox version) (#520)
zytx121 Oct 14, 2022
ed210be
Update __init__.py (#550)
zytx121 Oct 18, 2022
b916ad4
[Refactor] refactor Rotated ATSS (#551)
zytx121 Oct 18, 2022
9543a4e
Refactor docs (#552)
zytx121 Oct 18, 2022
288481f
Refactor structure of mmrotate (#558)
zytx121 Oct 21, 2022
c8744e3
[Refactor] rename configs (#560)
zytx121 Oct 24, 2022
bf56334
[Feature] Add RotatedCocoMetric (#557)
liuyanyi Oct 25, 2022
3974ea5
Update issue templates (#569)
zytx121 Oct 26, 2022
d410c0d
Refactor READEME (#566)
zytx121 Oct 26, 2022
1eec447
[FIX] Import RotatedBoxes from structures not core (#572)
DonggeunYu Oct 26, 2022
7c7ab15
[FIX] Fix a typo in the config file. (#571)
DonggeunYu Oct 26, 2022
219a659
Fix kfiou loss nan bug. (#555)
zytx121 Oct 26, 2022
a30dd63
[Refactor] Refactor image_demo and huge_image_demo (#561)
jbwang1997 Oct 27, 2022
d62c868
Refactor visualizer (#581)
zytx121 Oct 28, 2022
6a3bef4
Support Coco style annotations (#582)
zytx121 Nov 1, 2022
fcbc3e8
Refactor tools (#590)
zytx121 Nov 2, 2022
32cc5ae
Refactor sar dataset (#591)
zytx121 Nov 3, 2022
8b407bd
Update CI for 1.x & Improve the codecov to 80% (#596)
zytx121 Nov 7, 2022
038ca5a
Changelog v1.0.0rc0 (#599)
zytx121 Nov 7, 2022
3466768
[Doc] Update README.md for 1.x. (#602)
RangiLyu Nov 7, 2022
766185e
Update readme of 1.0.0rc0 (#603)
zytx121 Nov 7, 2022
e458ee8
Fix image_demo bug. (#613)
zytx121 Nov 15, 2022
e64ab24
use mmengine in torchserve deployment (#616)
austinmw Nov 15, 2022
cc7e532
Fix rbbox_overlaps error (#620)
zytx121 Nov 15, 2022
1bb4e45
fix windows ci (#621)
RangiLyu Nov 15, 2022
96397d7
[Community] Add 'Projects/' folder, and the first example project (#627)
zytx121 Nov 21, 2022
684d36c
Update test.py (#636)
zytx121 Nov 22, 2022
6ff22e1
Create .pre-commit-config-zh-cn.yaml (#630)
RangeKing Nov 22, 2022
f629785
add mmrotate 1.x dockerfile (#631)
YanxingLiu Nov 22, 2022
29636ee
[Algorithm] Support PSC (#617)
yuyi1005 Nov 23, 2022
e4ae563
Update model-index.yml (#637)
zytx121 Nov 24, 2022
b41a291
[Fix] fix get_flops.py (#646)
yxzhao2022 Nov 28, 2022
e8c6eb8
[Feature] Support DIOR Dataset (#639)
yxzhao2022 Nov 30, 2022
22320aa
[Algorithm] Support H2RBox (#644)
yangxue0827 Dec 6, 2022
529fb00
[Fix][dev-1.x] sklearn depreated, install scikit-learn (#659)
nijkah Dec 15, 2022
447b30d
CodeCamp #38 RTMDet-R (#662)
liuyanyi Dec 19, 2022
ce079b3
[CI] Add torch 1.13 (#661)
zytx121 Dec 19, 2022
c404050
Modify keys in dataset.metainfo to lower case. (#654)
zytx121 Dec 30, 2022
b88863d
[Fix] Deprecating old type alias due to new version of numpy (#674)
RangeKing Dec 30, 2022
af1041e
[Enhance]: add data gitignore (#668)
JosonChan1998 Jan 3, 2023
a109800
Bump version to 1.0.0rc1 (#676)
zytx121 Jan 3, 2023
c961274
limit numpy version (#682)
RangiLyu Jan 3, 2023
5d0491c
Fix CI error when 'numpy >= 1.24.0' (#683)
zytx121 Jan 3, 2023
d35700d
[Fix] Add missing models in model index (#702)
liuyanyi Feb 1, 2023
0af1c26
Update get_started.md (#694)
qianlian-mozi Feb 1, 2023
bff5160
Update ICLR2023 papers (#718)
zytx121 Feb 6, 2023
4922856
fix img_shape (#719)
liuyanyi Feb 6, 2023
367326f
Set `e2cnn` as an optional dependency (#724)
zytx121 Feb 13, 2023
35c766e
docs: Add twitter discord medium youtube link (#729)
vansin Feb 15, 2023
fc4c792
Fix type hint import errors (#742)
zytx121 Feb 27, 2023
13965d9
Update DOTA dataset for mmyolo (#743)
zytx121 Feb 27, 2023
53fc8b8
Add PSC in README.md (#732)
zytx121 Feb 27, 2023
d2f8e9b
Update CVPR2023 paper (#747)
zytx121 Mar 6, 2023
607db84
[Projects] Support RR360 (Rotated Rectangle 360) Detection in TRR360D…
vansin Mar 13, 2023
c1aa0f9
Fix loss NaN bug when training HRSID dataset. (#760)
zytx121 Mar 17, 2023
45f2036
[Fix] Move points_range to the same device with points (#784)
DapengFeng Mar 27, 2023
17f8abc
Fix bug when training images without gt (#786)
zytx121 Mar 27, 2023
0d5a004
[Project] Support LSKNet (#782)
zcablii Mar 28, 2023
d92844a
[Feature] File I/O migration and reconstruction (#783)
zytx121 Mar 28, 2023
8b30525
[doc] add social network links (#789)
fengshiwest Mar 31, 2023
542457c
Support H2RBox-v2 (#805)
yuyi1005 Apr 18, 2023
65a9a2c
[Feature] Semi automated with label studio (#815)
fengshiwest Apr 18, 2023
e3c87de
update readme of playground project (#834)
kitecats May 5, 2023
b55be23
[Fix] fix LSKNet error in import (#839)
liuyanyi May 8, 2023
0e88d2d
[Fix] Update train.py to support distributed training with PyTorch>= …
jamiechoi1995 Jun 5, 2023
886fdae
update README.md (#855)
Li-Qingyun Jun 5, 2023
a860946
[Fix] Fix confusion_matrix (#870)
liuyanyi Jun 12, 2023
4aae1fc
fix box error in h2rbox_head.py (#881)
Li-Qingyun Jun 20, 2023
d50ab76
[Fix] Fix nan loss in RotatedIoULoss when using AmpOptimizer (#889)
jamiechoi1995 Jul 4, 2023
3500994
refine tutorial (#899)
CSberlin Jul 18, 2023
12de380
[Fix] update mmdet maximum version to enable latest mmdet-3.1.0 (#918)
Li-Qingyun Sep 8, 2023
fd60bef
Update README_zh-CN.md (#923)
crazysteeaam Sep 8, 2023
b4f50a7
Update README.md of h2rboxv2
Li-Qingyun Oct 16, 2023
fabef42
Update homepage
Li-Qingyun Oct 16, 2023
58c069b
Update abs
Li-Qingyun Oct 16, 2023
9f91d91
Update abs
Li-Qingyun Oct 16, 2023
ec80524
Update README.md
yuyi1005 Sep 13, 2024
3ff004e
Merge pull request #952 from Li-Qingyun/patch-2
yuyi1005 Sep 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2.1

# this allows you to use CircleCI's dynamic configuration feature
setup: true

# the path-filtering orb is required to continue a pipeline based on
# the path of an updated fileset
orbs:
path-filtering: circleci/[email protected]

workflows:
# the always-run workflow is always triggered, regardless of the pipeline parameters.
always-run:
jobs:
# the path-filtering/filter job determines which pipeline
# parameters to update.
- path-filtering/filter:
name: check-updated-files
# 3-column, whitespace-delimited mapping. One mapping per
# line:
# <regex path-to-test> <parameter-to-set> <value-of-pipeline-parameter>
mapping: |
mmrotate/.* lint_only false
requirements/.* lint_only false
tests/.* lint_only false
tools/.* lint_only false
configs/.* lint_only false
.circleci/.* lint_only false
base-revision: dev-1.x
# this is the path of the configuration we should trigger once
# path filtering and pipeline parameter value updates are
# complete. In this case, we are using the parent dynamic
# configuration itself.
config-path: .circleci/test.yml
11 changes: 11 additions & 0 deletions .circleci/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG PYTORCH="1.8.1"
ARG CUDA="10.2"
ARG CUDNN="7"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

# To fix GPG key error when running apt-get update
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub

RUN apt-get update && apt-get install -y ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx
19 changes: 19 additions & 0 deletions .circleci/scripts/get_mmcv_var.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

TORCH=$1
CUDA=$2

# 10.2 -> cu102
MMCV_CUDA="cu`echo ${CUDA} | tr -d '.'`"

# MMCV only provides pre-compiled packages for torch 1.x.0
# which works for any subversions of torch 1.x.
# We force the torch version to be 1.x.0 to ease package searching
# and avoid unnecessary rebuild during MMCV's installation.
TORCH_VER_ARR=(${TORCH//./ })
TORCH_VER_ARR[2]=0
printf -v MMCV_TORCH "%s." "${TORCH_VER_ARR[@]}"
MMCV_TORCH=${MMCV_TORCH%?} # Remove the last dot

echo "export MMCV_CUDA=${MMCV_CUDA}" >> $BASH_ENV
echo "export MMCV_TORCH=${MMCV_TORCH}" >> $BASH_ENV
189 changes: 189 additions & 0 deletions .circleci/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
version: 2.1

orbs:
codecov: codecov/[email protected]

# the default pipeline parameters, which will be updated according to
# the results of the path-filtering orb
parameters:
lint_only:
type: boolean
default: true

jobs:
lint:
docker:
- image: cimg/python:3.7.4
steps:
- checkout
- run:
name: Install pre-commit hook
command: |
pip install pre-commit
pre-commit install
- run:
name: Linting
command: pre-commit run --all-files
- run:
name: Check docstring coverage
command: |
pip install interrogate
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-magic --ignore-regex "__repr__" --fail-under 90 mmrotate
build_cpu:
parameters:
# The python version must match available image tags in
# https://circleci.com/developer/images/image/cimg/python
python:
type: string
torch:
type: string
torchvision:
type: string
docker:
- image: cimg/python:<< parameters.python >>
resource_class: large
steps:
- checkout
- run:
name: Install Libraries
command: |
sudo apt-get update
sudo apt-get install -y ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libgl1-mesa-glx libjpeg-dev zlib1g-dev libtinfo-dev libncurses5 libgeos-dev
- run:
name: Configure Python & pip
command: |
pip install --upgrade pip
pip install wheel
- run:
name: Install PyTorch
command: |
python -V
pip install torch==<< parameters.torch >>+cpu torchvision==<< parameters.torchvision >>+cpu -f https://download.pytorch.org/whl/torch_stable.html
- run:
name: Install mmrotate dependencies
command: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0rc2'
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements/tests.txt
- run:
name: Build and install
command: |
pip install -e .
- run:
name: Run unittests
command: |
pytest tests/
build_cuda:
parameters:
torch:
type: string
cuda:
type: enum
enum: ["10.1", "10.2", "11.1"]
cudnn:
type: integer
default: 7
machine:
image: ubuntu-2004-cuda-11.4:202110-01
# docker_layer_caching: true
resource_class: gpu.nvidia.small
steps:
- checkout
- run:
# Cloning repos in VM since Docker doesn't have access to the private key
name: Clone Repos
command: |
git clone -b main --depth 1 https://github.com/open-mmlab/mmengine.git /home/circleci/mmengine
git clone -b dev-3.x --depth 1 https://github.com/open-mmlab/mmdetection.git /home/circleci/mmdetection
git clone --depth 1 https://github.com/QUVA-Lab/e2cnn.git /home/circleci/e2cnn
- run:
name: Build Docker image
command: |
docker build .circleci/docker -t mmrotate:gpu --build-arg PYTORCH=<< parameters.torch >> --build-arg CUDA=<< parameters.cuda >> --build-arg CUDNN=<< parameters.cudnn >>
docker run --gpus all -t -d -v /home/circleci/project:/mmrotate -v /home/circleci/mmengine:/mmengine -v /home/circleci/mmdetection:/mmdetection -w /mmrotate --name mmrotate mmrotate:gpu
docker exec mmrotate apt-get install -y git
- run:
name: Install mmrotate dependencies
command: |
docker exec mmrotate pip install -e /mmengine
docker exec mmrotate pip install -U openmim
docker exec mmrotate mim install 'mmcv >= 2.0.0rc2'
docker exec mmrotate pip install -e /mmdetection
docker exec mmrotate pip install -r requirements/tests.txt
- run:
name: Build and install
command: |
docker exec mmrotate pip install -e .
- run:
name: Run unittests
command: |
docker exec mmrotate coverage run --branch --source mmrotate -m pytest tests/
docker exec mmrotate coverage xml
docker exec mmrotate coverage report -m
- codecov/upload
workflows:
pr_stage_lint:
when: << pipeline.parameters.lint_only >>
jobs:
- lint:
name: lint
filters:
branches:
ignore:
- dev-1.x
- 1.x
pr_stage_test:
when:
not:
<< pipeline.parameters.lint_only >>
jobs:
- lint:
name: lint
filters:
branches:
ignore:
- dev-1.x
- test-1.x
- build_cpu:
name: minimum_version_cpu
torch: 1.6.0
torchvision: 0.7.0
python: 3.7.4
requires:
- lint
- build_cpu:
name: maximum_version_cpu
torch: 1.13.0
torchvision: 0.14.0
python: 3.9.0
requires:
- minimum_version_cpu
- hold:
type: approval
requires:
- maximum_version_cpu
- build_cuda:
name: mainstream_version_gpu
torch: 1.8.1
# Use double quotation mark to explicitly specify its type
# as string instead of number
cuda: "10.2"
requires:
- hold
merge_stage_test:
when:
not:
<< pipeline.parameters.lint_only >>
jobs:
- build_cuda:
name: minimum_version_gpu
torch: 1.6.0
# Use double quotation mark to explicitly specify its type
# as string instead of number
cuda: "10.1"
filters:
branches:
only:
- dev-1.x
105 changes: 105 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: "🐞 Bug report"
description: "Create a report to help us reproduce and fix the bug"
labels: "kind/bug,status/unconfirmed"
title: "[Bug] "

body:
- type: markdown
attributes:
value: |
If you have already identified the reason, we strongly appreciate you creating a new PR to fix it [here](https://github.com/open-mmlab/mmrotate/pulls)!
If this issue is about installing MMCV, please file an issue at [MMCV](https://github.com/open-mmlab/mmcv/issues/new/choose).
If you need our help, please fill in as much of the following form as you're able to.

**The less clear the description, the longer it will take to solve it.**

- type: checkboxes
attributes:
label: Prerequisite
description: Please check the following items before creating a new issue.
options:
- label: I have searched [Issues](https://github.com/open-mmlab/mmrotate/issues) and [Discussions](https://github.com/open-mmlab/mmrotate/discussions) but cannot get the expected help.
required: true
- label: I have read the [FAQ documentation](https://mmrotate.readthedocs.io/en/1.x/notes/4_faq.html) but cannot get the expected help.
required: true
- label: The bug has not been fixed in the [latest version (master)](https://github.com/open-mmlab/mmrotate) or [latest version (1.x)](https://github.com/open-mmlab/mmrotate/tree/dev-1.x).
required: true

- type: dropdown
id: task
attributes:
label: Task
description: The problem arises when
options:
- I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
- I have modified the scripts/configs, or I'm working on my own tasks/models/datasets.
validations:
required: true

- type: dropdown
id: branch
attributes:
label: Branch
description: The problem arises when I'm working on
options:
- master branch https://github.com/open-mmlab/mmrotate
- 1.x branch https://github.com/open-mmlab/mmrotate/tree/1.x
validations:
required: true


- type: textarea
attributes:
label: Environment
description: |
Please run `python mmrotate/utils/collect_env.py` to collect necessary environment information and copy-paste it here.
You may add additional information that may be helpful for locating the problem, such as
- How you installed PyTorch \[e.g., pip, conda, source\]
- Other environment variables that may be related (such as `$PATH`, `$LD_LIBRARY_PATH`, `$PYTHONPATH`, etc.)
validations:
required: true

- type: textarea
attributes:
label: Reproduces the problem - code sample
description: |
Please provide a code sample that reproduces the problem you ran into. It can be a Colab link or just a code snippet.
placeholder: |
```python
# Sample code to reproduce the problem
```
validations:
required: true

- type: textarea
attributes:
label: Reproduces the problem - command or script
description: |
What command or script did you run?
placeholder: |
```shell
The command or script you run.
```
validations:
required: true

- type: textarea
attributes:
label: Reproduces the problem - error message
description: |
Please provide the error message or logs you got, with the full traceback.
placeholder: |
```
The error message or logs you got, with the full traceback.
```
validations:
required: true

- type: textarea
attributes:
label: Additional information
description: Tell us anything else you think we should know.
placeholder: |
1. What's your expected result?
2. What dataset did you use?
3. What do you think might be the reason?
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🚀 Feature request
description: Suggest an idea for this project
labels: "kind/enhancement,status/unconfirmed"
title: "[Feature] "

body:
- type: markdown
attributes:
value: |
We strongly appreciate you creating a PR to implement this feature [here](https://github.com/open-mmlab/mmrotate/pulls)!
If you need our help, please fill in as much of the following form as you're able to.

**The less clear the description, the longer it will take to solve it.**

- type: textarea
attributes:
label: What's the feature?
description: |
Tell us more about the feature and how this feature can help.
placeholder: |
E.g., It is inconvenient when \[....\].
This feature can \[....\].
validations:
required: true

- type: textarea
attributes:
label: Any other context?
description: |
Have you considered any alternative solutions or features? If so, what are they?
Also, feel free to add any other context or screenshots about the feature request here.
Loading
Loading