Upload folder using huggingface_hub
Browse files
taco_analysis/analyze_taco.py
CHANGED
|
@@ -245,7 +245,7 @@ def main():
|
|
| 245 |
parser = argparse.ArgumentParser(description="Analyze TACO dataset and generate plots")
|
| 246 |
parser.add_argument(
|
| 247 |
"--csv", type=Path,
|
| 248 |
-
default=Path(__file__).resolve().parent.parent / "
|
| 249 |
help="Path to taco_info.csv",
|
| 250 |
)
|
| 251 |
parser.add_argument(
|
|
|
|
| 245 |
parser = argparse.ArgumentParser(description="Analyze TACO dataset and generate plots")
|
| 246 |
parser.add_argument(
|
| 247 |
"--csv", type=Path,
|
| 248 |
+
default=Path(__file__).resolve().parent.parent / "taco_info.csv",
|
| 249 |
help="Path to taco_info.csv",
|
| 250 |
)
|
| 251 |
parser.add_argument(
|
taco_analysis/pyproject.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "taco-analysis"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = "Analysis and visualization scripts for the TACO dataset"
|
| 5 |
+
requires-python = ">=3.10"
|
| 6 |
+
dependencies = [
|
| 7 |
+
"numpy",
|
| 8 |
+
"pandas",
|
| 9 |
+
"matplotlib",
|
| 10 |
+
"seaborn",
|
| 11 |
+
"opencv-python",
|
| 12 |
+
"imageio",
|
| 13 |
+
"Pillow",
|
| 14 |
+
"trimesh",
|
| 15 |
+
"scipy",
|
| 16 |
+
"chumpy",
|
| 17 |
+
]
|
taco_analysis/render_mesh_overlay.py
CHANGED
|
@@ -488,9 +488,9 @@ def build_grid(root, row, calib, frame_idx, thumb_width=640, mano_root=None):
|
|
| 488 |
def main():
|
| 489 |
parser = argparse.ArgumentParser(description="Render mesh + hand overlays on TACO views")
|
| 490 |
parser.add_argument("--csv", type=Path,
|
| 491 |
-
default=Path(__file__).resolve().parent.parent / "
|
| 492 |
parser.add_argument("--root", type=Path,
|
| 493 |
-
default=Path(__file__).resolve().parent.parent
|
| 494 |
parser.add_argument("--mano-root", type=Path,
|
| 495 |
default=Path(__file__).resolve().parent.parent / "mano_v1_2" / "models")
|
| 496 |
parser.add_argument("--save-dir", type=Path,
|
|
|
|
| 488 |
def main():
|
| 489 |
parser = argparse.ArgumentParser(description="Render mesh + hand overlays on TACO views")
|
| 490 |
parser.add_argument("--csv", type=Path,
|
| 491 |
+
default=Path(__file__).resolve().parent.parent / "taco_info.csv")
|
| 492 |
parser.add_argument("--root", type=Path,
|
| 493 |
+
default=Path(__file__).resolve().parent.parent)
|
| 494 |
parser.add_argument("--mano-root", type=Path,
|
| 495 |
default=Path(__file__).resolve().parent.parent / "mano_v1_2" / "models")
|
| 496 |
parser.add_argument("--save-dir", type=Path,
|
taco_analysis/visualize_taco_3d_scene.py
CHANGED
|
@@ -217,9 +217,9 @@ def plot_scene(
|
|
| 217 |
def main():
|
| 218 |
parser = argparse.ArgumentParser(description="3D visualization of TACO cameras + objects")
|
| 219 |
parser.add_argument("--csv", type=Path,
|
| 220 |
-
default=Path(__file__).resolve().parent.parent / "
|
| 221 |
parser.add_argument("--root", type=Path,
|
| 222 |
-
default=Path(__file__).resolve().parent.parent
|
| 223 |
parser.add_argument("--save-dir", type=Path,
|
| 224 |
default=Path(__file__).resolve().parent / "plots" / "scene_3d")
|
| 225 |
parser.add_argument("--n-sequences", type=int, default=5)
|
|
|
|
| 217 |
def main():
|
| 218 |
parser = argparse.ArgumentParser(description="3D visualization of TACO cameras + objects")
|
| 219 |
parser.add_argument("--csv", type=Path,
|
| 220 |
+
default=Path(__file__).resolve().parent.parent / "taco_info.csv")
|
| 221 |
parser.add_argument("--root", type=Path,
|
| 222 |
+
default=Path(__file__).resolve().parent.parent)
|
| 223 |
parser.add_argument("--save-dir", type=Path,
|
| 224 |
default=Path(__file__).resolve().parent / "plots" / "scene_3d")
|
| 225 |
parser.add_argument("--n-sequences", type=int, default=5)
|
taco_analysis/visualize_taco_cameras_topdown.py
CHANGED
|
@@ -162,9 +162,9 @@ def plot_scene_2d(calib, root, row, save_path, frame_idx=0):
|
|
| 162 |
def main():
|
| 163 |
parser = argparse.ArgumentParser()
|
| 164 |
parser.add_argument("--csv", type=Path,
|
| 165 |
-
default=Path(__file__).resolve().parent.parent / "
|
| 166 |
parser.add_argument("--root", type=Path,
|
| 167 |
-
default=Path(__file__).resolve().parent.parent
|
| 168 |
parser.add_argument("--save-dir", type=Path,
|
| 169 |
default=Path(__file__).resolve().parent / "plots" / "scene_2d")
|
| 170 |
parser.add_argument("--n-sequences", type=int, default=5)
|
|
|
|
| 162 |
def main():
|
| 163 |
parser = argparse.ArgumentParser()
|
| 164 |
parser.add_argument("--csv", type=Path,
|
| 165 |
+
default=Path(__file__).resolve().parent.parent / "taco_info.csv")
|
| 166 |
parser.add_argument("--root", type=Path,
|
| 167 |
+
default=Path(__file__).resolve().parent.parent)
|
| 168 |
parser.add_argument("--save-dir", type=Path,
|
| 169 |
default=Path(__file__).resolve().parent / "plots" / "scene_2d")
|
| 170 |
parser.add_argument("--n-sequences", type=int, default=5)
|
taco_analysis/visualize_taco_epipolar.py
CHANGED
|
@@ -256,9 +256,9 @@ def build_epipolar_grid(
|
|
| 256 |
def main():
|
| 257 |
parser = argparse.ArgumentParser(description="Visualize TACO epipolar lines across cameras")
|
| 258 |
parser.add_argument("--csv", type=Path,
|
| 259 |
-
default=Path(__file__).resolve().parent.parent / "
|
| 260 |
parser.add_argument("--root", type=Path,
|
| 261 |
-
default=Path(__file__).resolve().parent.parent
|
| 262 |
parser.add_argument("--save-dir", type=Path,
|
| 263 |
default=Path(__file__).resolve().parent / "plots" / "epipolar")
|
| 264 |
parser.add_argument("--n-sequences", type=int, default=5,
|
|
|
|
| 256 |
def main():
|
| 257 |
parser = argparse.ArgumentParser(description="Visualize TACO epipolar lines across cameras")
|
| 258 |
parser.add_argument("--csv", type=Path,
|
| 259 |
+
default=Path(__file__).resolve().parent.parent / "taco_info.csv")
|
| 260 |
parser.add_argument("--root", type=Path,
|
| 261 |
+
default=Path(__file__).resolve().parent.parent)
|
| 262 |
parser.add_argument("--save-dir", type=Path,
|
| 263 |
default=Path(__file__).resolve().parent / "plots" / "epipolar")
|
| 264 |
parser.add_argument("--n-sequences", type=int, default=5,
|