Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teach
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nikos Athanasiou
teach
Commits
f6234450
Commit
f6234450
authored
2 years ago
by
Nikos Athanasiou
Browse files
Options
Downloads
Patches
Plain Diff
renderings
parent
ec3ec1e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spawn_jobs.py
+68
-49
68 additions, 49 deletions
spawn_jobs.py
with
68 additions
and
49 deletions
spawn_jobs.py
+
68
−
49
View file @
f6234450
...
...
@@ -35,14 +35,26 @@ base_dir = Path("/is/cluster/work/nathanasiou/experiments/teach/babel-amass/teac
# run(cmd)
# submission only samples
# for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branch_false-teacher_force_true',
# 'teach-motion_branch_true-teacher_force_false', 'teach-motion_branch_true-teacher_force_true']:
#for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branch_false-teacher_force_true',
# 'teach-motion_branch_true-teacher_force_false', 'teach-motion_branch_true-teacher_force_true',
# 'temos-motion_branch_true-teacher_force_false']:
# exp_path = Path(f'{base_dir}/{exp}/')
# cmd = ['python', 'cluster/single_run.py', '--folder', str(exp_path), '--mode', 'sample', '--bid', '20']
# cmd.extend([ '--extras',
# f"align=full slerp_ws=8 set=submission"])
# f"
jointstype=vertices
align=full slerp_ws=8 set=submission"])
# run(cmd)
#for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branch_false-teacher_force_true',
# 'teach-motion_branch_true-teacher_force_false', 'teach-motion_branch_true-teacher_force_true',
# 'temos-motion_branch_true-teacher_force_false']:
# exp_path = Path(f'{base_dir}/{exp}/')
# cmd = ['python', 'cluster/single_run.py', '--folder', str(exp_path), '--mode', 'sample', '--bid', '20']
# cmd.extend([ '--extras',
# f"jointstype=vertices align=trans slerp_ws=null set=submission"])
# run(cmd)
#end_script()
#end_script()
# # ablation history frames samples
# exp_ablate_h = ['teach-hist10-teacher_force',
# 'teach-hist10-teacher_force_false',
...
...
@@ -58,37 +70,37 @@ base_dir = Path("/is/cluster/work/nathanasiou/experiments/teach/babel-amass/teac
# teach/independent evaluation
# base_dir = Path("/is/cluster/work/nathanasiou/experiments/teach/babel-amass/teach-post-submission")
#
exps_to_sample = ['teach-motion_branch_false-teacher_force_false',
#
'teach-motion_branch_false-teacher_force_true',
#
'teach-motion_branch_true-teacher_force_false',
#
'teach-motion_branch_true-teacher_force_true',
#
'temos-motion_branch_false-teacher_force_false',
#
'temos-motion_branch_true-teacher_force_false',
#
'teach-hist10-teacher_force',
#
'teach-hist10-teacher_force_false',
#
'teach-hist5-teacher_force',
#
'teach-hist5-teacher_force_false']
exps_to_sample
=
[
'
teach-motion_branch_false-teacher_force_false
'
,
'
teach-motion_branch_false-teacher_force_true
'
,
'
teach-motion_branch_true-teacher_force_false
'
,
'
teach-motion_branch_true-teacher_force_true
'
,
'
temos-motion_branch_false-teacher_force_false
'
,
'
temos-motion_branch_true-teacher_force_false
'
,
'
teach-hist10-teacher_force
'
,
'
teach-hist10-teacher_force_false
'
,
'
teach-hist5-teacher_force
'
,
'
teach-hist5-teacher_force_false
'
]
# pairs_type = ['samples_no-slerp_unaligned_pairs',
# 'samples_slerp_aligned_pairs',
# 'samples_slerp_unaligned_pairs',
# 'samples_no-slerp_aligned_pairs']
#
set_folder = 'checkpoint-last/val'
#
slerp = ['true', 'false']
#
align = ['true', 'false']
#
for exp in exps_to_sample:
#
for slerp in ['true', 'false']:
#
for align in ['true', 'false']:
#
samples_path = Path(f'{base_dir}/{exp}/')
#
cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'eval', '--bid', '40']
#
cmd.extend(['--extras', f'align={align} slerp={slerp}'])
#
run(cmd)
#set_folder = 'checkpoint-last/val'
#slerp = ['true', 'false']
#align = ['true', 'false']
#for exp in exps_to_sample:
# for slerp in ['true', 'false']:
# for align in ['true', 'false']:
# samples_path = Path(f'{base_dir}/{exp}/')
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'eval', '--bid', '40']
# cmd.extend(['--extras', f'align={align} slerp={slerp}'])
# run(cmd)
# submission only samples
for
exp
in
[
'
teach-motion_branch_
fals
e-teacher_force_false
'
,
'
teach-motion_branch_false-teacher_force_true
'
,
'
te
ach
-motion_branch_true-teacher_force_false
'
,
'
teach-motion_branch_true-teacher_force_true
'
]:
samples_path
=
Path
(
f
'
{
base_dir
}
/
{
exp
}
/samples_slerp_aligned_pairs/checkpoint-last/submission
'
)
for
exp
in
[
'
teach-motion_branch_
tru
e-teacher_force_false
'
,
'
te
mos
-motion_branch_true-teacher_force_false
'
]:
samples_path
=
Path
(
f
'
{
base_dir
}
/
{
exp
}
/samples_
vertices_
slerp_aligned_pairs/checkpoint-last/submission
'
)
for
fig_var
in
[
'
true
'
,
'
false
'
]:
cmd
=
[
'
python
'
,
'
cluster/single_run.py
'
,
'
--folder
'
,
str
(
samples_path
),
'
--mode
'
,
'
render
'
,
'
--bid
'
,
'
20
'
]
cmd
.
extend
([
'
--extras
'
,
...
...
@@ -96,32 +108,39 @@ for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branc
run
(
cmd
)
# # single example rendering
# for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branch_false-teacher_force_true',
# 'teach-motion_branch_true-teacher_force_false', 'teach-motion_branch_true-teacher_force_true',
# 'temos-motion_branch_false-teacher_force_false', 'temos-motion_branch_true-teacher_force_false']:
# samples_path = Path(f'{base_dir}/{exp}/samples_slerp_aligned_pairs/checkpoint-last/submission')
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'render', '--bid', '20']
# cmd.extend([ '--extras',
# f"mode=video quality=false num=5 res=med fake_trans=trans"])
# run(cmd)
for
exp
in
[
'
teach-motion_branch_true-teacher_force_false
'
,
'
temos-motion_branch_true-teacher_force_false
'
]:
samples_path
=
Path
(
f
'
{
base_dir
}
/
{
exp
}
/samples_vertices_slerp_aligned_pairs/checkpoint-last/submission
'
)
cmd
=
[
'
python
'
,
'
cluster/single_run.py
'
,
'
--folder
'
,
str
(
samples_path
),
'
--mode
'
,
'
render
'
,
'
--bid
'
,
'
20
'
]
cmd
.
extend
([
'
--extras
'
,
f
"
mode=video quality=false num=5 res=med fake_trans=false
"
])
run
(
cmd
)
# wo slerp
for
exp
in
[
'
teach-motion_branch_true-teacher_force_false
'
,
'
temos-motion_branch_true-teacher_force_false
'
]:
samples_path
=
Path
(
f
'
{
base_dir
}
/
{
exp
}
/samples_vertices_no-slerp_unaligned_pairs/checkpoint-last/submission
'
)
cmd
=
[
'
python
'
,
'
cluster/single_run.py
'
,
'
--folder
'
,
str
(
samples_path
),
'
--mode
'
,
'
render
'
,
'
--bid
'
,
'
20
'
]
cmd
.
extend
([
'
--extras
'
,
f
"
mode=video quality=false num=5 res=med fake_trans=false
"
])
run
(
cmd
)
# # single example rendering
# for exp in ['teach-motion_branch_false-teacher_force_false', 'teach-motion_branch_false-teacher_force_true',
# 'teach-motion_branch_true-teacher_force_false', 'teach-motion_branch_true-teacher_force_true',
# 'temos-motion_branch_false-teacher_force_false', 'temos-motion_branch_true-teacher_force_false']:
# samples_path = Path(f'{base_dir}/{exp}/samples_slerp_aligned_pairs/checkpoint-last/submission/1183-3.npy')
# for fig_var in ['true', 'false']:
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'render', '--bid', '20']
# cmd.extend([ '--extras',
# f"mode=sequence quality=false num=5 res=med separate_actions={fig_var} fake_trans=true"])
# run(cmd)
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'render', '--bid', '20']
# cmd.extend([ '--extras',
# f"mode=sequence quality=false num=5 res=med separate_actions={fig_var} fake_trans=false"])
# run(cmd)
#for exp in ['teach-motion_branch_true-teacher_force_false',
# 'temos-motion_branch_true-teacher_force_false']:
# samples_path = Path(f'{base_dir}/{exp}/samples_vertices_slerp_aligned_pairs/checkpoint-last/submission/1183-3.npy')
# for fig_var in ['true', 'false']:
#
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'render', '--bid', '20']
# cmd.extend([ '--extras',
# f"mode=sequence quality=false num=5 res=med separate_actions={fig_var} fake_trans=true"])
# run(cmd)
# cmd = ['python', 'cluster/single_run.py', '--folder', str(samples_path), '--mode', 'render', '--bid', '20']
# cmd.extend([ '--extras',
# f"mode=sequence quality=false num=5 res=med separate_actions={fig_var} fake_trans=false"])
# run(cmd)
#end_script()
# temos/teach final exps
# models = ['teach', 'temos']
# motion_branch = ['true', 'false']
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment