DsL
commited on
Commit
·
ad92160
1
Parent(s):
6d37281
update dataset.py
Browse files- dataset.py +85 -64
- hypothetical_scenes/Hypothetic_v2_linear/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v2_nonlinear/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v3_fully_connected_linear/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v4_linear_full_connected/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v4_linear_v/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v4_nonlinear_v/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v5_linear/part_001/tabular.csv +1 -1
- hypothetical_scenes/Hypothetic_v5_linear_full_connected/part_001/tabular.csv +1 -1
- hypothetical_scenes/rendered_h3_linear_128P/part_001/ref_scene_128P.csv +1 -1
- hypothetical_scenes/rendered_h3_nonlinear_128P/part_001/ref_scene_128P.csv +1 -1
- hypothetical_scenes/rendered_h5_nonlinear/part_001/h5_scene_150x150.csv +1 -1
- real_scenes/Real_Parabola/part_001/tabular.csv +1 -1
- real_scenes/Real_spring_v3_256P/Real_spring_v3_256P.csv +1 -1
- real_scenes/Water_flow_scene_render/part_001/tabular.csv +1 -1
- real_scenes/real_pendulum/tabular.csv +1 -1
- real_scenes/rendered_magnetic_128/magnet_scene_128.csv +1 -1
- real_scenes/rendered_reflection_128P/refleciton_scene_circle_128P.csv +1 -1
- real_scenes/seesaw_scene_128P/.DS_Store +0 -0
- real_scenes/seesaw_scene_128P/part_001/seesaw_scene_128P_new.csv +0 -0
- real_scenes/spring_scene_128P/.DS_Store +0 -0
- real_scenes/spring_scene_128P/part_002/spring_scene_128P.csv +1 -1
dataset.py
CHANGED
|
@@ -2,9 +2,12 @@ import os
|
|
| 2 |
import glob
|
| 3 |
from pathlib import Path
|
| 4 |
from typing import List
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
import datasets
|
| 7 |
|
|
|
|
| 8 |
_CITATION = """\
|
| 9 |
@article{liu2025causal3d,
|
| 10 |
title={CAUSAL3D: A Comprehensive Benchmark for Causal Learning from Visual Data},
|
|
@@ -22,51 +25,12 @@ It includes both real-world recordings and rendered synthetic scenes demonstrati
|
|
| 22 |
_HOMEPAGE = "https://huggingface.co/datasets/LLDDSS/Causal3D"
|
| 23 |
_LICENSE = "CC-BY-4.0"
|
| 24 |
|
| 25 |
-
# # Automatically discover configs from folder names
|
| 26 |
-
# def _discover_configs(base_dir: str) -> List[datasets.BuilderConfig]:
|
| 27 |
-
# configs = []
|
| 28 |
-
# for root_folder in ["real_scenes", "hypothetical_scenes"]:
|
| 29 |
-
# full_path = os.path.join(base_dir, root_folder)
|
| 30 |
-
# if not os.path.exists(full_path):
|
| 31 |
-
# continue
|
| 32 |
-
# for scene in sorted(os.listdir(full_path)):
|
| 33 |
-
# scene_path = os.path.join(full_path, scene)
|
| 34 |
-
# if os.path.isdir(scene_path):
|
| 35 |
-
# config_name = f"{root_folder}_{scene}"
|
| 36 |
-
# configs.append(
|
| 37 |
-
# datasets.BuilderConfig(
|
| 38 |
-
# name=config_name,
|
| 39 |
-
# version=datasets.Version("1.0.0"),
|
| 40 |
-
# description=f"{scene} in {root_folder}",
|
| 41 |
-
# )
|
| 42 |
-
# )
|
| 43 |
-
# return configs
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
# def _discover_configs(base_dir: str) -> List[datasets.BuilderConfig]:
|
| 47 |
-
# configs = []
|
| 48 |
-
# for root_folder in ["real_scenes", "hypothetical_scenes"]:
|
| 49 |
-
# full_path = os.path.join(base_dir, root_folder)
|
| 50 |
-
# if not os.path.exists(full_path):
|
| 51 |
-
# continue
|
| 52 |
-
# for scene in sorted(os.listdir(full_path)):
|
| 53 |
-
# scene_path = os.path.join(full_path, scene)
|
| 54 |
-
# if os.path.isdir(scene_path):
|
| 55 |
-
# config_name = f"{root_folder}_{scene}"
|
| 56 |
-
# configs.append(
|
| 57 |
-
# datasets.BuilderConfig(
|
| 58 |
-
# name=config_name,
|
| 59 |
-
# version=datasets.Version("1.0.0"),
|
| 60 |
-
# description=f"{scene} in {root_folder}",
|
| 61 |
-
# )
|
| 62 |
-
# )
|
| 63 |
-
# return configs
|
| 64 |
-
|
| 65 |
-
|
| 66 |
class Causal3D(datasets.GeneratorBasedBuilder):
|
| 67 |
BUILDER_CONFIGS = [
|
| 68 |
# hypothetical_scenes
|
| 69 |
-
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v2_linear",
|
|
|
|
|
|
|
| 70 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v2_nonlinear", version=datasets.Version("1.0.0"), description="Hypothetic_v2_nonlinear scene"),
|
| 71 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v3_fully_connected_linear", version=datasets.Version("1.0.0"), description="Hypothetic_v3_fully_connected_linear scene"),
|
| 72 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v4_linear_full_connected", version=datasets.Version("1.0.0"), description="Hypothetic_v4_linear_full_connected scene"),
|
|
@@ -105,10 +69,14 @@ class Causal3D(datasets.GeneratorBasedBuilder):
|
|
| 105 |
license=_LICENSE,
|
| 106 |
citation=_CITATION,
|
| 107 |
)
|
| 108 |
-
|
| 109 |
def _split_generators(self, dl_manager):
|
| 110 |
parts = self.config.name.split("_", 2)
|
| 111 |
category = parts[0] + "_" + parts[1] # real_scenes or hypothetical_scenes
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
scene = parts[2]
|
| 113 |
data_dir = os.path.join(category, scene)
|
| 114 |
|
|
@@ -122,29 +90,82 @@ class Causal3D(datasets.GeneratorBasedBuilder):
|
|
| 122 |
def _generate_examples(self, data_dir):
|
| 123 |
# Find the .csv file
|
| 124 |
csv_files = list(Path(data_dir).rglob("*.csv"))
|
|
|
|
| 125 |
if not csv_files:
|
| 126 |
-
|
|
|
|
| 127 |
csv_path = csv_files[0]
|
| 128 |
df = pd.read_csv(csv_path)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
-
# Make sure a 'file_name' column exists
|
| 131 |
-
if "file_name" not in df.columns:
|
| 132 |
-
raise ValueError(f"'file_name' column not found in {csv_path.name}")
|
| 133 |
|
| 134 |
# Load image paths
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
for
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import glob
|
| 3 |
from pathlib import Path
|
| 4 |
from typing import List
|
| 5 |
+
import pandas as pd
|
| 6 |
+
import numpy as np
|
| 7 |
+
from tqdm import tqdm
|
| 8 |
import datasets
|
| 9 |
|
| 10 |
+
|
| 11 |
_CITATION = """\
|
| 12 |
@article{liu2025causal3d,
|
| 13 |
title={CAUSAL3D: A Comprehensive Benchmark for Causal Learning from Visual Data},
|
|
|
|
| 25 |
_HOMEPAGE = "https://huggingface.co/datasets/LLDDSS/Causal3D"
|
| 26 |
_LICENSE = "CC-BY-4.0"
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
class Causal3D(datasets.GeneratorBasedBuilder):
|
| 29 |
BUILDER_CONFIGS = [
|
| 30 |
# hypothetical_scenes
|
| 31 |
+
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v2_linear",
|
| 32 |
+
version=datasets.Version("1.0.0"),
|
| 33 |
+
description="Hypothetic_v2_linear scene"),
|
| 34 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v2_nonlinear", version=datasets.Version("1.0.0"), description="Hypothetic_v2_nonlinear scene"),
|
| 35 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v3_fully_connected_linear", version=datasets.Version("1.0.0"), description="Hypothetic_v3_fully_connected_linear scene"),
|
| 36 |
datasets.BuilderConfig(name="hypothetical_scenes_Hypothetic_v4_linear_full_connected", version=datasets.Version("1.0.0"), description="Hypothetic_v4_linear_full_connected scene"),
|
|
|
|
| 69 |
license=_LICENSE,
|
| 70 |
citation=_CITATION,
|
| 71 |
)
|
| 72 |
+
|
| 73 |
def _split_generators(self, dl_manager):
|
| 74 |
parts = self.config.name.split("_", 2)
|
| 75 |
category = parts[0] + "_" + parts[1] # real_scenes or hypothetical_scenes
|
| 76 |
+
|
| 77 |
+
if category not in ["real_scenes", "hypothetical_scenes"]:
|
| 78 |
+
raise ValueError(f"Invalid category '{category}'. Must be one of ['real_scenes', 'hypothetical_scenes']")
|
| 79 |
+
|
| 80 |
scene = parts[2]
|
| 81 |
data_dir = os.path.join(category, scene)
|
| 82 |
|
|
|
|
| 90 |
def _generate_examples(self, data_dir):
|
| 91 |
# Find the .csv file
|
| 92 |
csv_files = list(Path(data_dir).rglob("*.csv"))
|
| 93 |
+
csv_files = [f for f in Path(data_dir).rglob("*.csv") if not f.name.startswith("._")]
|
| 94 |
if not csv_files:
|
| 95 |
+
print(f"\033[33m[SKIP] No CSV found in {data_dir}, skipping this config.\033[0m")
|
| 96 |
+
return # ✅ 跳过该 config,不报错
|
| 97 |
csv_path = csv_files[0]
|
| 98 |
df = pd.read_csv(csv_path)
|
| 99 |
+
if "image" not in df.columns:
|
| 100 |
+
print(f"\033[31m[SKIP] 'image' column not found in {csv_path}, skipping this config.\033[0m")
|
| 101 |
+
return
|
| 102 |
+
|
| 103 |
+
# sub_folders = [os.path.join(data_dir, i) for i in os.listdir(data_dir) if os.path.isdir(os.path.join(data_dir, i))]
|
| 104 |
+
|
| 105 |
+
def color(text, code):
|
| 106 |
+
return f"\033[{code}m{text}\033[0m"
|
| 107 |
+
# print()
|
| 108 |
+
# print(color(f"data_dir: {data_dir}", "36")) # Cyan
|
| 109 |
+
# print(color(f"csv_path: {csv_path}", "33")) # Yellow
|
| 110 |
+
# print(color(f"csv_path.name: {csv_path.name}", "35")) # Magenta
|
| 111 |
+
# print(color(f"CSV columns: {list(df.columns)}", "32")) # Green
|
| 112 |
+
|
| 113 |
+
images = df["image"].tolist()
|
| 114 |
+
# images only contain image names
|
| 115 |
+
|
| 116 |
+
images = [i.split('/')[-1].split('.')[0] for i in images if i.endswith(('.png', '.jpg', '.jpeg'))]
|
| 117 |
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
# Load image paths
|
| 120 |
+
try:
|
| 121 |
+
image_files = {}
|
| 122 |
+
for ext in ("*.png", "*.jpg", "*.jpeg"):
|
| 123 |
+
for img_path in Path(data_dir).rglob(ext):
|
| 124 |
+
relative_path = str(img_path.relative_to(data_dir))
|
| 125 |
+
image_files[relative_path] = str(img_path)
|
| 126 |
+
parts = [i.split('/')[0] for i in list(image_files.keys())]
|
| 127 |
+
parts = set(parts)
|
| 128 |
+
if "part_000" not in parts:
|
| 129 |
+
parts= ['']
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
except Exception as e:
|
| 133 |
+
print(color(f"Error loading images: {e}", "31")) # Red
|
| 134 |
+
return
|
| 135 |
+
try:
|
| 136 |
+
# Match CSV rows with image paths
|
| 137 |
+
for idx, row in tqdm(df.iterrows(), total=len(df), desc="Processing rows", unit="row"):
|
| 138 |
+
fname = row["ID"]
|
| 139 |
+
raw_record_img_path = row["image"]
|
| 140 |
+
record_img_name = raw_record_img_path.split('/')[-1]
|
| 141 |
+
for part in parts:
|
| 142 |
+
if part == '':
|
| 143 |
+
record_img_path = record_img_name
|
| 144 |
+
else:
|
| 145 |
+
record_img_path = "/".join([part, record_img_name.strip()])
|
| 146 |
+
if "Water_flow_scene_render" in data_dir:
|
| 147 |
+
record_img_path = "/".join([part, str(int(record_img_name.strip().split('.')[0]))+".png"])
|
| 148 |
+
|
| 149 |
+
# print(f"raw_record_img_path: {raw_record_img_path}")
|
| 150 |
+
# print(f"record_img_name: {record_img_name}")
|
| 151 |
+
# print("part: ", part)
|
| 152 |
+
# print(f"part: {part}, record_img_name: {record_img_name}, record_img_path: {record_img_path}")
|
| 153 |
+
# print(f"record_img_path in image_files: {record_img_path in image_files}")
|
| 154 |
+
# print(image_files.keys())
|
| 155 |
+
# print(f"part: {part}, record_img_name: {record_img_name}, record_img_path: {record_img_path}, "
|
| 156 |
+
# f"record_image_path in image_files: {record_img_path in image_files}, image_files,key[0]: {list(image_files.keys())[0]}")
|
| 157 |
+
# print(image_files)
|
| 158 |
+
# exit(0)
|
| 159 |
+
if record_img_path in image_files:
|
| 160 |
+
# print(color(f"record_img_path: { image_files[record_img_path]}", "34")) # Blue
|
| 161 |
+
yield idx, {
|
| 162 |
+
"image": image_files[record_img_path],
|
| 163 |
+
"file_name": fname,
|
| 164 |
+
"metadata": row.to_json(),
|
| 165 |
+
}
|
| 166 |
+
break
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
except Exception as e:
|
| 170 |
+
print(color(f"Error processing CSV rows: {e}", "31"))
|
| 171 |
+
|
hypothetical_scenes/Hypothetic_v2_linear/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
201,1.2276555332721908,0.6642465469574618,1.8414832999082862,1.225714324440478,00201.png
|
| 3 |
202,2.319641181897304,0.8211907845322407,3.4794617728459563,1.515318841038914,00202.png
|
| 4 |
203,8.494210597169078,1.2657408745314087,12.741315895753615,2.335633851691395,00203.png
|
|
|
|
| 1 |
+
ID,volume_ball,r_ball,volume_cube,edge_cube,image
|
| 2 |
201,1.2276555332721908,0.6642465469574618,1.8414832999082862,1.225714324440478,00201.png
|
| 3 |
202,2.319641181897304,0.8211907845322407,3.4794617728459563,1.515318841038914,00202.png
|
| 4 |
203,8.494210597169078,1.2657408745314087,12.741315895753615,2.335633851691395,00203.png
|
hypothetical_scenes/Hypothetic_v2_nonlinear/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,8.369588994,1.259520307,-0.26068306,5.797284907,1.796421378,00001.png
|
| 3 |
2,8.748098298,1.278228064,-0.201077945,5.879111123,1.804833831,00002.png
|
| 4 |
3,11.03841816,1.381251441,0.159586318,5.923758636,1.809391108,00003.png
|
|
|
|
| 1 |
+
ID,volume_ball,r_ball,scaled_volume_ball,volume_cube,edge_cube,image
|
| 2 |
1,8.369588994,1.259520307,-0.26068306,5.797284907,1.796421378,00001.png
|
| 3 |
2,8.748098298,1.278228064,-0.201077945,5.879111123,1.804833831,00002.png
|
| 4 |
3,11.03841816,1.381251441,0.159586318,5.923758636,1.809391108,00003.png
|
hypothetical_scenes/Hypothetic_v3_fully_connected_linear/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,4.461709044674453,2.2308545223372267,4.461709044674453,00001.png
|
| 3 |
2,4.641951570349036,2.320975785174518,4.641951570349036,00002.png
|
| 4 |
3,5.732580074458467,2.8662900372292337,5.7325800744584665,00003.png
|
|
|
|
| 1 |
+
ID,volume_ball,height_of_cuboid,base_area_cone,image
|
| 2 |
1,4.461709044674453,2.2308545223372267,4.461709044674453,00001.png
|
| 3 |
2,4.641951570349036,2.320975785174518,4.641951570349036,00002.png
|
| 4 |
3,5.732580074458467,2.8662900372292337,5.7325800744584665,00003.png
|
hypothetical_scenes/Hypothetic_v4_linear_full_connected/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
ID,volume_ball,height_cuboid,base_area_cuboid,base_area_cone,
|
| 2 |
21,3.3875191596472374,0.6775038319294475,0.8468797899118095,1.6937595798236187,21.png
|
| 3 |
11,9.833214754961691,1.9666429509923384,2.458303688740423,4.916607377480846,11.png
|
| 4 |
1,21.434078230426127,4.286815646085226,5.358519557606533,10.717039115213064,1.png
|
|
|
|
| 1 |
+
ID,volume_ball,height_cuboid,base_area_cuboid,base_area_cone,image
|
| 2 |
21,3.3875191596472374,0.6775038319294475,0.8468797899118095,1.6937595798236187,21.png
|
| 3 |
11,9.833214754961691,1.9666429509923384,2.458303688740423,4.916607377480846,11.png
|
| 4 |
1,21.434078230426127,4.286815646085226,5.358519557606533,10.717039115213064,1.png
|
hypothetical_scenes/Hypothetic_v4_linear_v/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,6.357351219715659,3.6156062425386826,4.986478731127171,9.972957462254342,./database/Hypothetic_v4_linear_v/1.png
|
| 3 |
2,6.638624424255205,0.17833484754806211,3.408479635901634,6.816959271803268,./database/Hypothetic_v4_linear_v/2.png
|
| 4 |
3,8.340578905668082,3.555331721959619,5.94795531381385,11.8959106276277,./database/Hypothetic_v4_linear_v/3.png
|
|
|
|
| 1 |
+
ID,volumn_ball,height_cuboid,base_area_cuboid,base_area_cone,image
|
| 2 |
1,6.357351219715659,3.6156062425386826,4.986478731127171,9.972957462254342,./database/Hypothetic_v4_linear_v/1.png
|
| 3 |
2,6.638624424255205,0.17833484754806211,3.408479635901634,6.816959271803268,./database/Hypothetic_v4_linear_v/2.png
|
| 4 |
3,8.340578905668082,3.555331721959619,5.94795531381385,11.8959106276277,./database/Hypothetic_v4_linear_v/3.png
|
hypothetical_scenes/Hypothetic_v4_nonlinear_v/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,6.357351219715659,1.3101132663588948,3.6156062425386826,12.062283240823739,-0.31391936527208175,23.77826555326548,./database/Hypothetic_v4_nonlinear_v/1.png
|
| 3 |
2,6.638624424255205,1.3697183815719198,0.17833484754806211,5.255928964219695,-1.029062930258996,12.890549194075682,./database/Hypothetic_v4_nonlinear_v/2.png
|
| 4 |
3,8.340578905668082,1.730382644340953,3.555331721959619,12.047128974152987,-0.31551162389560594,23.76594362428198,./database/Hypothetic_v4_nonlinear_v/3.png
|
|
|
|
| 1 |
+
ID,volumn_ball,scaled_volumn_ball,height_cuboid,base_area_cuboid,scaled_base_area_cuboid,base_area_cone,image
|
| 2 |
1,6.357351219715659,1.3101132663588948,3.6156062425386826,12.062283240823739,-0.31391936527208175,23.77826555326548,./database/Hypothetic_v4_nonlinear_v/1.png
|
| 3 |
2,6.638624424255205,1.3697183815719198,0.17833484754806211,5.255928964219695,-1.029062930258996,12.890549194075682,./database/Hypothetic_v4_nonlinear_v/2.png
|
| 4 |
3,8.340578905668082,1.730382644340953,3.555331721959619,12.047128974152987,-0.31551162389560594,23.76594362428198,./database/Hypothetic_v4_nonlinear_v/3.png
|
hypothetical_scenes/Hypothetic_v5_linear/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,8.44246124322853,2.910973480326474,3.406030417066501,19.40648986884316,7.814080579215056,1.png
|
| 3 |
2,8.818598934965225,0.8277786954836739,2.8939132891346695,5.518524636557826,2.7996576095356396,2.png
|
| 4 |
3,11.094568418540959,2.8744434678543143,4.190703565918581,19.162956452362096,7.964245828102308,3.png
|
|
|
|
| 1 |
+
ID,volumn_ball,height_cuboid,base_area_cuboid,base_area_cone,height_cone,image
|
| 2 |
1,8.44246124322853,2.910973480326474,3.406030417066501,19.40648986884316,7.814080579215056,1.png
|
| 3 |
2,8.818598934965225,0.8277786954836739,2.8939132891346695,5.518524636557826,2.7996576095356396,2.png
|
| 4 |
3,11.094568418540959,2.8744434678543143,4.190703565918581,19.162956452362096,7.964245828102308,3.png
|
hypothetical_scenes/Hypothetic_v5_linear_full_connected/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,9.693527257336251,2.9080581772008753,4.362087265801313,6.543130898701969,5.525310536681664,1.png
|
| 3 |
2,10.126583641391235,3.0379750924173705,4.5569626386260556,6.835443957939083,5.772152675593004,2.png
|
| 4 |
3,12.746962126264686,3.8240886378794055,5.736132956819108,8.604199435228661,7.26576841197087,3.png
|
|
|
|
| 1 |
+
ID,volumn_ball,height_cuboid,base_area_cuboid,base_area_cone,height_cone,image
|
| 2 |
1,9.693527257336251,2.9080581772008753,4.362087265801313,6.543130898701969,5.525310536681664,1.png
|
| 3 |
2,10.126583641391235,3.0379750924173705,4.5569626386260556,6.835443957939083,5.772152675593004,2.png
|
| 4 |
3,12.746962126264686,3.8240886378794055,5.736132956819108,8.604199435228661,7.26576841197087,3.png
|
hypothetical_scenes/rendered_h3_linear_128P/part_001/ref_scene_128P.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,1.2142280370909548,0.9069697912825146,11.149147559318502,-0.011310625604584398,./database/rendered_h3_nonlinear_2_128P/4ef2cf50573c48c6887da53d897e3176.png,0.6618159289741131,0.3419035160331501,2.469652310381151,nan
|
| 3 |
2,0.5405328999756235,0.2376380412554322,3.8821700278563798,0.011314427833172038,./database/rendered_h3_nonlinear_2_128P/f32a2e6f8cfe499cb1a404cb1f965de2.png,0.5053332106733465,0.1341708362624793,4.201939915174118,nan
|
| 4 |
3,0.5756299964763172,1.071416152994136,9.744547428336316,-0.01157712570558065,./database/rendered_h3_nonlinear_2_128P/1a5c3ab6c9bd41a49b645e7c5aa431c3.png,0.5160418648262919,0.4207621332341213,1.9263492154441724,nan
|
|
|
|
| 1 |
+
ID,volume_ball,volume_cylinder,tile_angle,epsilon,image,radius_ball,radius_cylinder,height_cylinder,PS: c = 4 * a + 7 * b + 5 * epsilon
|
| 2 |
1,1.2142280370909548,0.9069697912825146,11.149147559318502,-0.011310625604584398,./database/rendered_h3_nonlinear_2_128P/4ef2cf50573c48c6887da53d897e3176.png,0.6618159289741131,0.3419035160331501,2.469652310381151,nan
|
| 3 |
2,0.5405328999756235,0.2376380412554322,3.8821700278563798,0.011314427833172038,./database/rendered_h3_nonlinear_2_128P/f32a2e6f8cfe499cb1a404cb1f965de2.png,0.5053332106733465,0.1341708362624793,4.201939915174118,nan
|
| 4 |
3,0.5756299964763172,1.071416152994136,9.744547428336316,-0.01157712570558065,./database/rendered_h3_nonlinear_2_128P/1a5c3ab6c9bd41a49b645e7c5aa431c3.png,0.5160418648262919,0.4207621332341213,1.9263492154441724,nan
|
hypothetical_scenes/rendered_h3_nonlinear_128P/part_001/ref_scene_128P.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1 ,0.23459849915257136 ,0.3826005059721821 ,0.569191972758752 ,0.22375469195963163 ,3.6188000876934936 , 4.249022030659164 ,0.005135798644490502 ,./database/rendered_h3_nonlinear_1_128P/7fd6de8df4b447eab5101c8caed471c2.png
|
| 3 |
2 ,0.10052331922663041 ,0.2884426013758498 ,0.230069060073269 ,0.12946087446329488 ,4.369495265661141 , 1.8458664302495802 ,0.026903944468274925 ,./database/rendered_h3_nonlinear_1_128P/9c81500774db4c36b2c5afca09a24d37.png
|
| 4 |
3 ,0.47282233081419367 ,0.48328478580742495 ,0.5360137319981847 ,0.23750822575199732 ,3.0246054645500755 , 4.261372098892546 ,-0.00044912085671136267 ,./database/rendered_h3_nonlinear_1_128P/47d4b543bcfa46d299ec01dbba69880d.png
|
|
|
|
| 1 |
+
ID,volume_ball ,radius_ball ,volume_cylinder ,radius_cylinder ,height_cylinder ,tilt_angle ,noise_1 ,image
|
| 2 |
1 ,0.23459849915257136 ,0.3826005059721821 ,0.569191972758752 ,0.22375469195963163 ,3.6188000876934936 , 4.249022030659164 ,0.005135798644490502 ,./database/rendered_h3_nonlinear_1_128P/7fd6de8df4b447eab5101c8caed471c2.png
|
| 3 |
2 ,0.10052331922663041 ,0.2884426013758498 ,0.230069060073269 ,0.12946087446329488 ,4.369495265661141 , 1.8458664302495802 ,0.026903944468274925 ,./database/rendered_h3_nonlinear_1_128P/9c81500774db4c36b2c5afca09a24d37.png
|
| 4 |
3 ,0.47282233081419367 ,0.48328478580742495 ,0.5360137319981847 ,0.23750822575199732 ,3.0246054645500755 , 4.261372098892546 ,-0.00044912085671136267 ,./database/rendered_h3_nonlinear_1_128P/47d4b543bcfa46d299ec01dbba69880d.png
|
hypothetical_scenes/rendered_h5_nonlinear/part_001/h5_scene_150x150.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
12 ,2.769763227949224 ,0.9828833585801344 , 5.1120121129050204 , 1.7107783653351136 ,1.4500034633335988 ,-0.0024450479569384778 ,0.04757853869852967 ,0.07923130772087676 ,./database/rendered_h5_150x150_nonlinear/a456ea0b9abb42179ade73935aab1013.png ,nan
|
| 3 |
24 ,2.977600919455541 ,0.969234274593656 , 4.998482994593695 , 1.7886038699275741 ,0.9660926348649062 ,-0.0023797626285576136 ,0.09350500015961156 ,0.1576700523800217 ,./database/rendered_h5_150x150_nonlinear/11a180b791fb4b8e9739bdc2308aee3c.png ,nan
|
| 4 |
26 ,2.781025710902497 ,0.9035599237471122 , 4.716550452489086 , 1.1260907961972155 ,-237.4688007837483 ,0.0002741802705891588 ,0.13151244710795473 ,0.11544214737613223 ,./database/rendered_h5_150x150_nonlinear/2f4d96f09a2649ec9923bbedb78f3640.png ,nan
|
|
|
|
| 1 |
+
ID,volume_ball ,height_cylinder ,distance_ball_cylinder ,height_cylinder_above_ground ,tilt_angle ,epsilon_1 ,epsilon_2 ,epsilon_3 ,image,"PS: b = np.sin(d) + 3epsilon_2, c =2*cos(a) + 7b + 2epsilon_2, e = tan(c) + 2d + 5epsilon_3"
|
| 2 |
12 ,2.769763227949224 ,0.9828833585801344 , 5.1120121129050204 , 1.7107783653351136 ,1.4500034633335988 ,-0.0024450479569384778 ,0.04757853869852967 ,0.07923130772087676 ,./database/rendered_h5_150x150_nonlinear/a456ea0b9abb42179ade73935aab1013.png ,nan
|
| 3 |
24 ,2.977600919455541 ,0.969234274593656 , 4.998482994593695 , 1.7886038699275741 ,0.9660926348649062 ,-0.0023797626285576136 ,0.09350500015961156 ,0.1576700523800217 ,./database/rendered_h5_150x150_nonlinear/11a180b791fb4b8e9739bdc2308aee3c.png ,nan
|
| 4 |
26 ,2.781025710902497 ,0.9035599237471122 , 4.716550452489086 , 1.1260907961972155 ,-237.4688007837483 ,0.0002741802705891588 ,0.13151244710795473 ,0.11544214737613223 ,./database/rendered_h5_150x150_nonlinear/2f4d96f09a2649ec9923bbedb78f3640.png ,nan
|
real_scenes/Real_Parabola/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
0,0.5672800675052121,48.416945274912734,1.0003766961651042,3.550588207334381,0.png
|
| 3 |
1,0.1969696969696969,39.191540329180185,0.0860771343845725,0.4222912629861321,1.png
|
| 4 |
2,0.6818181818181818,40.519643149940265,1.0903008166178716,5.102769458150399,2.png
|
|
|
|
| 1 |
+
ID,deformation,angle,H,L,image
|
| 2 |
0,0.5672800675052121,48.416945274912734,1.0003766961651042,3.550588207334381,0.png
|
| 3 |
1,0.1969696969696969,39.191540329180185,0.0860771343845725,0.4222912629861321,1.png
|
| 4 |
2,0.6818181818181818,40.519643149940265,1.0903008166178716,5.102769458150399,2.png
|
real_scenes/Real_spring_v3_256P/Real_spring_v3_256P.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 1)",1_0.png
|
| 3 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 4)",1_1.png
|
| 4 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 8)",1_2.png
|
|
|
|
| 1 |
+
ID,weight,spring original height,deformation,max_deformation,spring_constant,matrial,cube size,camera_location,image
|
| 2 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 1)",1_0.png
|
| 3 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 4)",1_1.png
|
| 4 |
1,44.61709044674453,13,3.845763001928744,10.79,11.60162246721079,Wood,"(0.9059759378433228, 0.9059759378433228, 0.9059759378433228)","(0, 15, 8)",1_2.png
|
real_scenes/Water_flow_scene_render/part_001/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
0,0.0259003246339238,1.3628374703523634,0.8177552664785064,0.5775474906001206,0.7449332807203554, 00000.png,0.8
|
| 3 |
1,0.026386212243451,1.1592314652850535,0.8250003937375635,0.2400640498977131,0.7494589718845341, 00001.png,0.8
|
| 4 |
2,0.0001181429972279,1.188542884268203,0.8001064849890434,0.547810987612077,0.743532771539106, 00002.png,0.8
|
|
|
|
| 1 |
+
ID,Ball Volume,Diameter of the bottom,Water height,Hole height,Water length,image,initial_water_height
|
| 2 |
0,0.0259003246339238,1.3628374703523634,0.8177552664785064,0.5775474906001206,0.7449332807203554, 00000.png,0.8
|
| 3 |
1,0.026386212243451,1.1592314652850535,0.8250003937375635,0.2400640498977131,0.7494589718845341, 00001.png,0.8
|
| 4 |
2,0.0001181429972279,1.188542884268203,0.8001064849890434,0.547810987612077,0.743532771539106, 00002.png,0.8
|
real_scenes/real_pendulum/tabular.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,2.1325087955107356,0.38,2.2,0.2,0.02450193594008005,18.125483799524886,0.008371467909579981,2.3673708941573675,2.272641914630887,2.274990227210294,./database/real_pendulum/b44c0f028e394885bf5824bf65878344.png
|
| 3 |
2,2.2530098462268735,0.38,2.2,0.2,0.15256481854952225,-35.982604040653044,0.05707758166630814,2.223346874353643,2.0734166651565316,2.14110017085903,./database/real_pendulum/38ab460682d047c193b526b988d8633f.png
|
| 4 |
3,2.176576545905581,0.38,2.2,0.2,0.035648989873294915,50.9833438016299,0.05657311534705801,2.2986758998321575,2.2260260601049104,2.2768351123587327,./database/real_pendulum/8102a7694dde4a84a31f9a948daedc45.png
|
|
|
|
| 1 |
+
ID,x_l,y_l,x_p,y_p,l,theta,shadow length,shadow point,left,right,image
|
| 2 |
1,2.1325087955107356,0.38,2.2,0.2,0.02450193594008005,18.125483799524886,0.008371467909579981,2.3673708941573675,2.272641914630887,2.274990227210294,./database/real_pendulum/b44c0f028e394885bf5824bf65878344.png
|
| 3 |
2,2.2530098462268735,0.38,2.2,0.2,0.15256481854952225,-35.982604040653044,0.05707758166630814,2.223346874353643,2.0734166651565316,2.14110017085903,./database/real_pendulum/38ab460682d047c193b526b988d8633f.png
|
| 4 |
3,2.176576545905581,0.38,2.2,0.2,0.035648989873294915,50.9833438016299,0.05657311534705801,2.2986758998321575,2.2260260601049104,2.2768351123587327,./database/real_pendulum/8102a7694dde4a84a31f9a948daedc45.png
|
real_scenes/rendered_magnetic_128/magnet_scene_128.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,./database/rendered_magnetic_128/20241119_204421_Over_3D_128p.png,-1.0106183900252486,"(0.8655149431119491, 4.526390958018492, -0.03)",[-0.90155071 0.43267345]
|
| 3 |
2,./database/rendered_magnetic_128/20241119_204424_Over_3D_128p.png,-225.54527609233517,"(-1.4280470087048818, -4.684853166121223, -0.03)",[0.92801895 0.37253298]
|
| 4 |
3,./database/rendered_magnetic_128/20241119_204427_Over_3D_128p.png,-232.8094009599803,"(-1.90926800531539, -3.5206511042360753, -0.03)",[0.99911795 0.04199188]
|
|
|
|
| 1 |
+
ID,image,magnet_direction(degree),needle_location,needle_direction(vector)\n
|
| 2 |
1,./database/rendered_magnetic_128/20241119_204421_Over_3D_128p.png,-1.0106183900252486,"(0.8655149431119491, 4.526390958018492, -0.03)",[-0.90155071 0.43267345]
|
| 3 |
2,./database/rendered_magnetic_128/20241119_204424_Over_3D_128p.png,-225.54527609233517,"(-1.4280470087048818, -4.684853166121223, -0.03)",[0.92801895 0.37253298]
|
| 4 |
3,./database/rendered_magnetic_128/20241119_204427_Over_3D_128p.png,-232.8094009599803,"(-1.90926800531539, -3.5206511042360753, -0.03)",[0.99911795 0.04199188]
|
real_scenes/rendered_reflection_128P/refleciton_scene_circle_128P.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
2,"[-0.03937180987581754, -0.9992246296939955]","[-0.05730616572776617, 0.9812902738420469]","[-0.017934355851948632, -0.017934355851948632]",7ff2504b-5941-429e-840a-044d2cf6d16c.png
|
| 3 |
31,"[-0.978627420279129, -0.20564136810918382]","[-0.9827749924216449, 0.20149379596666792]","[-0.004147572142515903, -0.004147572142515903]",e79dd116-95e4-4e1f-ab98-67397d068ffb.png
|
| 4 |
8,"[-0.9819293512693629, -0.18924785102010588]","[-1.0013990543595883, 0.1697781479298804]","[-0.019469703090225464, -0.019469703090225464]",b6a66ec9-38ea-4fe4-983e-81d46b86879e.png
|
|
|
|
| 1 |
+
ID,incident_vector,reflection_vector_with_noise,noise,image
|
| 2 |
2,"[-0.03937180987581754, -0.9992246296939955]","[-0.05730616572776617, 0.9812902738420469]","[-0.017934355851948632, -0.017934355851948632]",7ff2504b-5941-429e-840a-044d2cf6d16c.png
|
| 3 |
31,"[-0.978627420279129, -0.20564136810918382]","[-0.9827749924216449, 0.20149379596666792]","[-0.004147572142515903, -0.004147572142515903]",e79dd116-95e4-4e1f-ab98-67397d068ffb.png
|
| 4 |
8,"[-0.9819293512693629, -0.18924785102010588]","[-1.0013990543595883, 0.1697781479298804]","[-0.019469703090225464, -0.019469703090225464]",b6a66ec9-38ea-4fe4-983e-81d46b86879e.png
|
real_scenes/seesaw_scene_128P/.DS_Store
ADDED
|
Binary file (8.2 kB). View file
|
|
|
real_scenes/seesaw_scene_128P/part_001/seesaw_scene_128P_new.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
real_scenes/spring_scene_128P/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
real_scenes/spring_scene_128P/part_002/spring_scene_128P.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,0.8134327205078087,13,8.296761741444412,0.16243453636632418,10.79,10,Wood,"(1.1067684888839722, 1.1067684888839722, 1.1067684888839722)"
|
| 3 |
2,0.4549692314742087,13,4.50801653000154,-0.04167578474054706,10.79,10,Wood,"(0.9118924140930176, 0.9118924140930176, 0.9118924140930176)"
|
| 4 |
3,0.5152199911468511,13,5.331062758811543,0.17886284734303187,10.79,10,Wood,"(0.9504891037940979, 0.9504891037940979, 0.9504891037940979)"
|
|
|
|
| 1 |
+
ID,weight,spring high,deformation,noise,max_deformation,spring_constant,matrial,cube size
|
| 2 |
1,0.8134327205078087,13,8.296761741444412,0.16243453636632418,10.79,10,Wood,"(1.1067684888839722, 1.1067684888839722, 1.1067684888839722)"
|
| 3 |
2,0.4549692314742087,13,4.50801653000154,-0.04167578474054706,10.79,10,Wood,"(0.9118924140930176, 0.9118924140930176, 0.9118924140930176)"
|
| 4 |
3,0.5152199911468511,13,5.331062758811543,0.17886284734303187,10.79,10,Wood,"(0.9504891037940979, 0.9504891037940979, 0.9504891037940979)"
|