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
wangsen
paddle_dbnet
Commits
4429973f
Commit
4429973f
authored
Jan 21, 2022
by
LDOUBLEV
Browse files
revert profile_options
parent
e9e8f409
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
test_tipc/configs/det_mv3_db_v2.0/train_benchmark.txt
test_tipc/configs/det_mv3_db_v2.0/train_benchmark.txt
+1
-1
tools/program.py
tools/program.py
+2
-6
No files found.
test_tipc/configs/det_mv3_db_v2.0/train_benchmark.txt
View file @
4429973f
...
...
@@ -10,7 +10,7 @@ Train.loader.batch_size_per_card:benchmark_train=16
Global.pretrained_model:null
train_model_name:latest
train_infer_img_dir:null
--profiler_options:
Tru
e
--profiler_options:
batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profil
e
##
trainer:norm_train
norm_train:tools/train.py -c configs/det/det_mv3_db.yml -o Global.pretrained_model=./pretrain_models/MobileNetV3_large_x0_5_pretrained
...
...
tools/program.py
View file @
4429973f
...
...
@@ -46,8 +46,8 @@ class ArgsParser(ArgumentParser):
self
.
add_argument
(
'-p'
,
'--profiler_options'
,
type
=
bool
,
default
=
Fals
e
,
type
=
str
,
default
=
Non
e
,
help
=
'The option of profiler, which should be in format
\"
key1=value1;key2=value2;key3=value3
\"
.'
)
...
...
@@ -150,10 +150,6 @@ def train(config,
print_batch_step
=
config
[
'Global'
][
'print_batch_step'
]
eval_batch_step
=
config
[
'Global'
][
'eval_batch_step'
]
profiler_options
=
config
[
'profiler_options'
]
if
profiler_options
is
True
:
profiler_options
=
"batch_range=[10,20];state=GPU;tracer_option=Default;profile_path=model.profile"
else
:
profiler_options
=
None
global_step
=
0
if
'global_step'
in
pre_best_model_dict
:
...
...
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