-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add final config/run/plot script for pcd_to_pose
- Loading branch information
Showing
4 changed files
with
149 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from hitchhiking_rotations import HITCHHIKING_ROOT_DIR | ||
import os | ||
import sys | ||
|
||
p = os.path.join(HITCHHIKING_ROOT_DIR, "scripts", "train.py") | ||
|
||
for seed in range(10): | ||
os.system(f"python3 {p} --experiment cube_image_to_pose --seed {seed}") | ||
exps = ["pcd_to_pose", "cube_image_to_pose", "pose_to_cube_image"] | ||
assert len(sys.argv) == 2, "Please provide the experiment name as an argument." | ||
assert sys.argv[1] in exps, f"Experiment name should be one of {exps}" | ||
|
||
exp = sys.argv[1] | ||
p = os.path.join(HITCHHIKING_ROOT_DIR, "scripts", "train.py") | ||
for seed in range(10): | ||
os.system(f"python3 {p} --experiment pose_to_cube_image --seed {seed}") | ||
|
||
|
||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_19.py"))) | ||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_12a.py"))) | ||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_12b.py"))) | ||
os.system(f"python3 {p} --experiment {exp} --seed {seed}") | ||
if exp in exps[:2]: | ||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_19.py", exp))) | ||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_12a.py", exp))) | ||
else: | ||
os.system("python3 " + str(os.path.join(HITCHHIKING_ROOT_DIR, "visu", "figure_12b.py"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters