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
ab670420
Commit
ab670420
authored
Oct 10, 2018
by
Kai Chen
Browse files
add opencv-python to requirements
parent
0f2594bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
mmcv/runner/hooks/logger/pavi.py
mmcv/runner/hooks/logger/pavi.py
+2
-2
setup.py
setup.py
+3
-1
No files found.
mmcv/runner/hooks/logger/pavi.py
View file @
ab670420
...
@@ -113,7 +113,7 @@ class PaviClient(object):
...
@@ -113,7 +113,7 @@ class PaviClient(object):
break
break
else
:
else
:
self
.
_print_log
(
self
.
_print_log
(
'unexpected status code:
%d
, err msg: {}'
.
'unexpected status code:
{}
, err msg: {}'
.
format
(
status_code
,
response
.
reason
),
format
(
status_code
,
response
.
reason
),
level
=
logging
.
ERROR
)
level
=
logging
.
ERROR
)
retry
+=
1
retry
+=
1
...
@@ -171,4 +171,4 @@ class PaviLoggerHook(LoggerHook):
...
@@ -171,4 +171,4 @@ class PaviLoggerHook(LoggerHook):
log_outs
=
runner
.
log_buffer
.
output
.
copy
()
log_outs
=
runner
.
log_buffer
.
output
.
copy
()
log_outs
.
pop
(
'time'
,
None
)
log_outs
.
pop
(
'time'
,
None
)
log_outs
.
pop
(
'data_time'
,
None
)
log_outs
.
pop
(
'data_time'
,
None
)
self
.
pavi
.
log
(
runner
.
mode
,
runner
.
iter
,
log_outs
)
self
.
pavi
.
log
(
runner
.
mode
,
runner
.
iter
+
1
,
log_outs
)
setup.py
View file @
ab670420
import
sys
import
sys
from
setuptools
import
find_packages
,
setup
from
setuptools
import
find_packages
,
setup
install_requires
=
[
'numpy>=1.11.1'
,
'pyyaml'
,
'six'
,
'addict'
,
'requests'
]
install_requires
=
[
'numpy>=1.11.1'
,
'pyyaml'
,
'six'
,
'addict'
,
'requests'
,
'opencv-python'
]
if
sys
.
version_info
<
(
3
,
3
):
if
sys
.
version_info
<
(
3
,
3
):
install_requires
.
append
(
'backports.shutil_get_terminal_size'
)
install_requires
.
append
(
'backports.shutil_get_terminal_size'
)
if
sys
.
version_info
<
(
3
,
4
):
if
sys
.
version_info
<
(
3
,
4
):
...
...
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