diff --git a/.gitignore b/.gitignore index 14b4dafea..b8439e09f 100644 --- a/.gitignore +++ b/.gitignore @@ -109,4 +109,3 @@ venv.bak/ # custom mmcv/video/optflow_warp/flow_warp_module.cpp - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 755ee76f9..ab165c603 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +exclude: ^tests/data/ repos: - repo: https://github.com/asottile/seed-isort-config rev: v1.9.3 diff --git a/MANIFEST.in b/MANIFEST.in index e844cc6f4..d3c4f59d2 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include mmcv/video/optflow_warp/*.hpp \ No newline at end of file +include mmcv/video/optflow_warp/*.hpp diff --git a/README.rst b/README.rst index b2fb2e8ed..fc5db0f12 100644 --- a/README.rst +++ b/README.rst @@ -51,4 +51,4 @@ or install from source 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, -you can first install it before installing MMCV to skip the installation of :code:`opencv-python`. \ No newline at end of file +you can first install it before installing MMCV to skip the installation of :code:`opencv-python`. diff --git a/docs/Makefile b/docs/Makefile index 298ea9e21..51285967a 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -16,4 +16,4 @@ help: # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/image.md b/docs/image.md index c7efdd446..9d25a1f01 100644 --- a/docs/image.md +++ b/docs/image.md @@ -26,7 +26,7 @@ To show an image file or a loaded image ```python mmcv.imshow('tests/data/color.jpg') -# this is equivalent to +# this is equivalent to for i in range(10): img = np.random.randint(256, size=(100, 100, 3), dtype=np.uint8) diff --git a/docs/runner.md b/docs/runner.md index 5582b5346..95dbe3163 100644 --- a/docs/runner.md +++ b/docs/runner.md @@ -3,4 +3,4 @@ The runner module aims to help users to start training with less code, while stays flexible and configurable. -Documentation and examples are still on going. \ No newline at end of file +Documentation and examples are still on going. diff --git a/docs/video.md b/docs/video.md index 7875c27d2..93d66d702 100644 --- a/docs/video.md +++ b/docs/video.md @@ -115,4 +115,4 @@ optical flow (img2 -> img1) warpped image and difference with ground truth -![warpped image](_static/flow_warp_diff.png) \ No newline at end of file +![warpped image](_static/flow_warp_diff.png) diff --git a/docs/visualization.md b/docs/visualization.md index f819c732d..968e35058 100644 --- a/docs/visualization.md +++ b/docs/visualization.md @@ -21,4 +21,4 @@ mmcv.imshow_bboxes(img, bboxes) ```python flow = mmcv.flowread('test.flo') mmcv.flowshow(flow) -``` \ No newline at end of file +``` diff --git a/examples/dist_train_cifar10.sh b/examples/dist_train_cifar10.sh index e201a4e43..04978db72 100755 --- a/examples/dist_train_cifar10.sh +++ b/examples/dist_train_cifar10.sh @@ -2,4 +2,4 @@ PYTHON=${PYTHON:-"python"} -$PYTHON -m torch.distributed.launch --nproc_per_node=$2 train_cifar10.py $1 --launcher pytorch ${@:3} \ No newline at end of file +$PYTHON -m torch.distributed.launch --nproc_per_node=$2 train_cifar10.py $1 --launcher pytorch ${@:3}