Format to conform pre-commit (#173)

Signed-off-by: lizz <lizz@sensetime.com>
pull/178/head
lizz 2020-02-01 10:14:55 +08:00 committed by GitHub
parent 43ca0e57a9
commit 90a0f353ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 9 additions and 9 deletions

1
.gitignore vendored
View File

@ -109,4 +109,3 @@ venv.bak/
# custom # custom
mmcv/video/optflow_warp/flow_warp_module.cpp mmcv/video/optflow_warp/flow_warp_module.cpp

View File

@ -1,3 +1,4 @@
exclude: ^tests/data/
repos: repos:
- repo: https://github.com/asottile/seed-isort-config - repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3 rev: v1.9.3

View File

@ -1 +1 @@
include mmcv/video/optflow_warp/*.hpp include mmcv/video/optflow_warp/*.hpp

View File

@ -51,4 +51,4 @@ or install from source
Note: If you would like to use :code:`opencv-python-headless` instead of :code:`opencv-python`, Note: If you would like to use :code:`opencv-python-headless` instead of :code:`opencv-python`,
e.g., in a minimum container environment or servers without GUI, e.g., in a minimum container environment or servers without GUI,
you can first install it before installing MMCV to skip the installation of :code:`opencv-python`. you can first install it before installing MMCV to skip the installation of :code:`opencv-python`.

View File

@ -16,4 +16,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new # Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile %: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

View File

@ -26,7 +26,7 @@ To show an image file or a loaded image
```python ```python
mmcv.imshow('tests/data/color.jpg') mmcv.imshow('tests/data/color.jpg')
# this is equivalent to # this is equivalent to
for i in range(10): for i in range(10):
img = np.random.randint(256, size=(100, 100, 3), dtype=np.uint8) img = np.random.randint(256, size=(100, 100, 3), dtype=np.uint8)

View File

@ -3,4 +3,4 @@
The runner module aims to help users to start training with less code, while stays The runner module aims to help users to start training with less code, while stays
flexible and configurable. flexible and configurable.
Documentation and examples are still on going. Documentation and examples are still on going.

View File

@ -115,4 +115,4 @@ optical flow (img2 -> img1)
warpped image and difference with ground truth warpped image and difference with ground truth
![warpped image](_static/flow_warp_diff.png) ![warpped image](_static/flow_warp_diff.png)

View File

@ -21,4 +21,4 @@ mmcv.imshow_bboxes(img, bboxes)
```python ```python
flow = mmcv.flowread('test.flo') flow = mmcv.flowread('test.flo')
mmcv.flowshow(flow) mmcv.flowshow(flow)
``` ```

View File

@ -2,4 +2,4 @@
PYTHON=${PYTHON:-"python"} PYTHON=${PYTHON:-"python"}
$PYTHON -m torch.distributed.launch --nproc_per_node=$2 train_cifar10.py $1 --launcher pytorch ${@:3} $PYTHON -m torch.distributed.launch --nproc_per_node=$2 train_cifar10.py $1 --launcher pytorch ${@:3}