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
c270500a
Commit
c270500a
authored
Jun 10, 2021
by
LDOUBLEV
Browse files
delete launch
parent
e0d1779f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
test/test.sh
test/test.sh
+7
-5
No files found.
test/test.sh
View file @
c270500a
...
...
@@ -102,14 +102,11 @@ for train_model in ${train_model_list[*]}; do
for
gpu
in
${
gpu_list
[*]
}
;
do
use_gpu
=
True
if
[
${
gpu
}
=
"-1"
]
;
then
lanuch
=
""
use_gpu
=
False
env
=
""
elif
[
${#
gpu
}
-le
1
]
;
then
launch
=
""
env
=
"CUDA_VISIBLE_DEVICES=
${
gpu
}
"
else
launch
=
"-m paddle.distributed.launch --log_dir=./debug/ --gpus
${
gpu
}
"
IFS
=
","
array
=(
${
gpu
}
)
env
=
"CUDA_VISIBLE_DEVICES=
${
array
[0]
}
"
...
...
@@ -139,8 +136,13 @@ for train_model in ${train_model_list[*]}; do
pretrain
=
"./pretrain_models/MobileNetV3_large_x0_5_pretrained"
fi
save_log
=
"
${
log_path
}
/
${
model_name
}
_
${
slim_trainer
}
_autocast_
${
auto_cast
}
_gpuid_
${
gpu
}
"
command
=
"
${
python
}
${
launch
}
${
trainer
}
-c
${
yml_file
}
-o Global.epoch_num=
${
epoch
}
Global.eval_batch_step=
${
eval_batch_step
}
Global.auto_cast=
${
auto_cast
}
Global.pretrained_model=
${
pretrain
}
Global.save_model_dir=
${
save_log
}
Global.use_gpu=
${
use_gpu
}
Train.loader.batch_size_per_card=2"
${
python
}
${
launch
}
${
trainer
}
-c
${
yml_file
}
-o
Global.epoch_num
=
${
epoch
}
Global.eval_batch_step
=
${
eval_batch_step
}
Global.auto_cast
=
${
auto_cast
}
Global.pretrained_model
=
${
pretrain
}
Global.save_model_dir
=
${
save_log
}
Global.use_gpu
=
${
use_gpu
}
Train.loader.batch_size_per_card
=
2
if
[
${#
gpu
}
-le
2
]
;
then
command
=
"
${
python
}
${
trainer
}
-c
${
yml_file
}
-o Global.epoch_num=
${
epoch
}
Global.eval_batch_step=
${
eval_batch_step
}
Global.auto_cast=
${
auto_cast
}
Global.pretrained_model=
${
pretrain
}
Global.save_model_dir=
${
save_log
}
Global.use_gpu=
${
use_gpu
}
Train.loader.batch_size_per_card=2"
${
python
}
${
trainer
}
-c
${
yml_file
}
-o
Global.epoch_num
=
${
epoch
}
Global.eval_batch_step
=
${
eval_batch_step
}
Global.auto_cast
=
${
auto_cast
}
Global.pretrained_model
=
${
pretrain
}
Global.save_model_dir
=
${
save_log
}
Global.use_gpu
=
${
use_gpu
}
Train.loader.batch_size_per_card
=
2
else
command
=
"
${
python
}
-m paddle.distributed.launch --log_dir=./debug/ --gpus
${
gpu
}
${
trainer
}
-c
${
yml_file
}
-o Global.epoch_num=
${
epoch
}
Global.eval_batch_step=
${
eval_batch_step
}
Global.auto_cast=
${
auto_cast
}
Global.pretrained_model=
${
pretrain
}
Global.save_model_dir=
${
save_log
}
Global.use_gpu=
${
use_gpu
}
Train.loader.batch_size_per_card=2"
${
python
}
-m
paddle.distributed.launch
--log_dir
=
./debug/
--gpus
${
gpu
}
${
trainer
}
-c
${
yml_file
}
-o
Global.epoch_num
=
${
epoch
}
Global.eval_batch_step
=
${
eval_batch_step
}
Global.auto_cast
=
${
auto_cast
}
Global.pretrained_model
=
${
pretrain
}
Global.save_model_dir
=
${
save_log
}
Global.use_gpu
=
${
use_gpu
}
Train.loader.batch_size_per_card
=
2
fi
status_check
$?
"
${
trainer
}
"
"
${
command
}
"
"
${
status_log
}
"
command
=
"
${
python
}
${
export_model
}
-c
${
yml_file
}
-o Global.pretrained_model=
${
save_log
}
/latest Global.save_inference_dir=
${
save_log
}
_infer/ Global.save_model_dir=
${
save_log
}
"
...
...
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