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
dcnv3
Commits
3c580b47
Commit
3c580b47
authored
Jan 24, 2025
by
zhe chen
Browse files
Clean detection code
parent
b1238b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
detection/test.py
detection/test.py
+0
-3
No files found.
detection/test.py
View file @
3c580b47
...
@@ -113,7 +113,6 @@ def parse_args():
...
@@ -113,7 +113,6 @@ def parse_args():
def
main
():
def
main
():
print
(
'!!!!!!!!!!!!!!!!!!1'
,
flush
=
True
)
args
=
parse_args
()
args
=
parse_args
()
assert
args
.
out
or
args
.
eval
or
args
.
format_only
or
args
.
show
\
assert
args
.
out
or
args
.
eval
or
args
.
format_only
or
args
.
show
\
...
@@ -169,7 +168,6 @@ def main():
...
@@ -169,7 +168,6 @@ def main():
else
:
else
:
cfg
.
gpu_ids
=
range
(
1
)
cfg
.
gpu_ids
=
range
(
1
)
print
(
'!!!!!!!!!!!!!!!!!!2'
,
flush
=
True
)
# init distributed env first, since logger depends on the dist info.
# init distributed env first, since logger depends on the dist info.
if
args
.
launcher
==
'none'
:
if
args
.
launcher
==
'none'
:
distributed
=
False
distributed
=
False
...
@@ -182,7 +180,6 @@ def main():
...
@@ -182,7 +180,6 @@ def main():
else
:
else
:
distributed
=
True
distributed
=
True
init_dist
(
args
.
launcher
,
**
cfg
.
dist_params
)
init_dist
(
args
.
launcher
,
**
cfg
.
dist_params
)
print
(
'!!!!!!!!!!!!!!!!!!3'
,
flush
=
True
)
rank
,
_
=
get_dist_info
()
rank
,
_
=
get_dist_info
()
# allows not to create
# allows not to create
...
...
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