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
OpenPCDet
Commits
acc9dd26
Commit
acc9dd26
authored
Jun 23, 2020
by
Shaoshuai Shi
Browse files
add training and testing scripts
parent
19a75f1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
tools/scripts/dist_train.sh
tools/scripts/dist_train.sh
+8
-0
tools/scripts/slurm_test_single.sh
tools/scripts/slurm_test_single.sh
+19
-0
tools/scripts/slurm_train.sh
tools/scripts/slurm_train.sh
+23
-0
No files found.
tools/scripts/dist_train.sh
0 → 100644
View file @
acc9dd26
#!/usr/bin/env bash
set
-x
NGPUS
=
$1
PY_ARGS
=
${
@
:2
}
python
-m
torch.distributed.launch
--nproc_per_node
=
${
NGPUS
}
train.py
--launcher
pytorch
${
PY_ARGS
}
tools/scripts/slurm_test_single.sh
0 → 100644
View file @
acc9dd26
#!/usr/bin/env bash
set
-x
PARTITION
=
$1
GPUS
=
1
GPUS_PER_NODE
=
1
PY_ARGS
=
${
@
:2
}
JOB_NAME
=
eval
SRUN_ARGS
=
${
SRUN_ARGS
:-
""
}
srun
-p
${
PARTITION
}
\
--job-name
=
${
JOB_NAME
}
\
--gres
=
gpu:
${
GPUS_PER_NODE
}
\
--ntasks
=
${
GPUS
}
\
--ntasks-per-node
=
${
GPUS_PER_NODE
}
\
--kill-on-bad-exit
=
1
\
${
SRUN_ARGS
}
\
python
-u
test.py
${
PY_ARGS
}
tools/scripts/slurm_train.sh
0 → 100644
View file @
acc9dd26
#!/usr/bin/env bash
set
-x
PARTITION
=
$1
JOB_NAME
=
$2
GPUS
=
$3
PY_ARGS
=
${
@
:4
}
GPUS_PER_NODE
=
${
GPUS_PER_NODE
:-
8
}
CPUS_PER_TASK
=
${
CPUS_PER_TASK
:-
5
}
SRUN_ARGS
=
${
SRUN_ARGS
:-
""
}
srun
-p
${
PARTITION
}
\
--job-name
=
${
JOB_NAME
}
\
--gres
=
gpu:
${
GPUS_PER_NODE
}
\
--ntasks
=
${
GPUS
}
\
--ntasks-per-node
=
${
GPUS_PER_NODE
}
\
--cpus-per-task
=
${
CPUS_PER_TASK
}
\
--kill-on-bad-exit
=
1
\
${
SRUN_ARGS
}
\
python
-u
train.py
--launcher
slurm
${
PY_ARGS
}
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