Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
90a0f353
Unverified
Commit
90a0f353
authored
Feb 01, 2020
by
lizz
Committed by
GitHub
Feb 01, 2020
Browse files
Format to conform pre-commit (#173)
Signed-off-by:
lizz
<
lizz@sensetime.com
>
parent
43ca0e57
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
9 deletions
+9
-9
.gitignore
.gitignore
+0
-1
.pre-commit-config.yaml
.pre-commit-config.yaml
+1
-0
MANIFEST.in
MANIFEST.in
+1
-1
README.rst
README.rst
+1
-1
docs/Makefile
docs/Makefile
+1
-1
docs/image.md
docs/image.md
+1
-1
docs/runner.md
docs/runner.md
+1
-1
docs/video.md
docs/video.md
+1
-1
docs/visualization.md
docs/visualization.md
+1
-1
examples/dist_train_cifar10.sh
examples/dist_train_cifar10.sh
+1
-1
No files found.
.gitignore
View file @
90a0f353
...
@@ -109,4 +109,3 @@ venv.bak/
...
@@ -109,4 +109,3 @@ venv.bak/
# custom
# custom
mmcv/video/optflow_warp/flow_warp_module.cpp
mmcv/video/optflow_warp/flow_warp_module.cpp
.pre-commit-config.yaml
View file @
90a0f353
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
...
...
MANIFEST.in
View file @
90a0f353
include mmcv/video/optflow_warp/*.hpp
include mmcv/video/optflow_warp/*.hpp
\ No newline at end of file
README.rst
View file @
90a0f353
...
@@ -51,4 +51,4 @@ or install from source
...
@@ -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`.
\ No newline at end of file
docs/Makefile
View file @
90a0f353
...
@@ -16,4 +16,4 @@ help:
...
@@ -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)
\ No newline at end of file
docs/image.md
View file @
90a0f353
...
@@ -26,7 +26,7 @@ To show an image file or a loaded image
...
@@ -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
)
...
...
docs/runner.md
View file @
90a0f353
...
@@ -3,4 +3,4 @@
...
@@ -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.
\ No newline at end of file
docs/video.md
View file @
90a0f353
...
@@ -115,4 +115,4 @@ optical flow (img2 -> img1)
...
@@ -115,4 +115,4 @@ optical flow (img2 -> img1)
warpped image and difference with ground truth
warpped image and difference with ground truth


\ No newline at end of file
docs/visualization.md
View file @
90a0f353
...
@@ -21,4 +21,4 @@ mmcv.imshow_bboxes(img, bboxes)
...
@@ -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
)
```
```
\ No newline at end of file
examples/dist_train_cifar10.sh
View file @
90a0f353
...
@@ -2,4 +2,4 @@
...
@@ -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
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment