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
+
from .ycb import YCBVLoader
|
| 7 |
+
from .messykitchen import MessyKitchenLoader
|
| 8 |
+
from .picasso import PicassoLoader
|
| 9 |
+
+from .frozen import FrozenEvaluationLoader
|
| 10 |
+
|
| 11 |
+
DATASETS = {
|
| 12 |
+
+ "frozen": FrozenEvaluationLoader,
|
| 13 |
+
"capture": CaptureLoader,
|
| 14 |
+
"combined": CombinedLoader,
|
| 15 |
+
"extent": ExtentLoader,
|
| 16 |
+
diff --git a/dataloader/frozen.py b/dataloader/frozen.py
|
| 17 |
+
new file mode 100644
|
| 18 |
+
index 0000000..2a43518
|
| 19 |
+
--- /dev/null
|
| 20 |
+
+++ b/dataloader/frozen.py
|
| 21 |
+
@@ -0,0 +1,74 @@
|
| 22 |
+
+"""Read portable RGB, masks, and shared GT meshes from frozen evaluation data."""
|
| 23 |
+
+from collections import defaultdict
|
| 24 |
+
+import json
|
| 25 |
+
+
|
| 26 |
+
+import numpy as np
|
| 27 |
+
+from PIL import Image
|
| 28 |
+
+import trimesh
|
| 29 |
+
+
|
| 30 |
+
+from .base import BaseDataLoader, EvaluationSample
|
| 31 |
+
+from .geometry import artifact_path, checked_digest
|
| 32 |
+
+from utils.hashing import input_hashes, sha256
|
| 33 |
+
+
|
| 34 |
+
+
|
| 35 |
+
+SCHEMA = 'partprobe3d.frozen-evaluation.v1'
|
| 36 |
+
+
|
| 37 |
+
+
|
| 38 |
+
+class FrozenEvaluationLoader(BaseDataLoader):
|
| 39 |
+
+ """Load saved evaluation inputs without the original source datasets."""
|
| 40 |
+
+ name = 'frozen'
|
| 41 |
+
+
|
| 42 |
+
+ def __init__(self, root):
|
| 43 |
+
+ super().__init__(root)
|
| 44 |
+
+ self.manifest_path = self.root / 'manifest.json'
|
| 45 |
+
+ self.manifest = json.loads(self.manifest_path.read_text())
|
| 46 |
+
+ if self.manifest.get('schema') != SCHEMA or not self.manifest.get('complete'):
|
| 47 |
+
+ raise ValueError('A complete frozen evaluation dataset is required')
|
| 48 |
+
+ self.rows = self.manifest['frames']
|
| 49 |
+
+ if not self.rows or len({row['key'] for row in self.rows}) != len(self.rows):
|
| 50 |
+
+ raise ValueError('Frozen evaluation sample keys must be nonempty and unique')
|
| 51 |
+
+
|
| 52 |
+
+ def __len__(self):
|
| 53 |
+
+ return len(self.rows)
|
| 54 |
+
+
|
| 55 |
+
+ def _load_sample(self, index):
|
| 56 |
+
+ row = self.rows[index]
|
| 57 |
+
+ paths = {key: artifact_path(self.root, row[key]) for key in ('rgb', 'masks', 'ground_truth')}
|
| 58 |
+
+ for relative in (row[key] for key in paths):
|
| 59 |
+
+ if checked_digest(artifact_path(self.root, relative)) != self.manifest['files'][relative]:
|
| 60 |
+
+ raise ValueError(f'Frozen evaluation file checksum differs: {relative}')
|
| 61 |
+
+ with Image.open(paths['rgb']) as image:
|
| 62 |
+
+ rgb = np.array(image.convert('RGB'))
|
| 63 |
+
+ with Image.open(paths['masks']) as image:
|
| 64 |
+
+ masks = np.array(image).astype(np.int32)
|
| 65 |
+
+ if input_hashes(rgb, masks) != {key: row[key] for key in ('rgb_sha256', 'masks_sha256')}:
|
| 66 |
+
+ raise ValueError('Frozen RGB pixels or mask labels differ from the source selection')
|
| 67 |
+
+ scene = trimesh.load(paths['ground_truth'], force='scene', process=False)
|
| 68 |
+
+ metadata = scene.metadata.get('partprobe3d', {})
|
| 69 |
+
+ if (metadata.get('schema') != 'partprobe3d.object-meshes.v1' or metadata.get('units') != 'm'
|
| 70 |
+
+ or metadata.get('coordinate_frame') != row['gt_coordinate_frame']
|
| 71 |
+
+ or metadata.get('identity_mode') != row['dataset_metadata'].get('input_mask_identity', 'mask')):
|
| 72 |
+
+ raise ValueError('Frozen GT mesh metadata differs from the selection')
|
| 73 |
+
+ pieces = defaultdict(list)
|
| 74 |
+
+ for node in scene.graph.nodes_geometry:
|
| 75 |
+
+ transform, geometry = scene.graph[node]
|
| 76 |
+
+ mesh = scene.geometry[geometry].copy().apply_transform(transform)
|
| 77 |
+
+ pieces[int(mesh.metadata['object_index'])].append(mesh)
|
| 78 |
+
+ meshes = {index: trimesh.util.concatenate(parts) for index, parts in pieces.items()}
|
| 79 |
+
+ if (set(meshes) != {int(obj['object_index']) for obj in metadata['objects']}
|
| 80 |
+
+ or len(meshes) != row['target_objects']):
|
| 81 |
+
+ raise ValueError('Frozen GT objects differ from the selection')
|
| 82 |
+
+ return EvaluationSample(key=row['key'], rgb=rgb, masks=masks, gt_meshes=meshes,
|
| 83 |
+
+ gt_coordinate_frame=row['gt_coordinate_frame'], metadata=row['dataset_metadata'],
|
| 84 |
+
+ visibility=row.get('visibility', {}), mask_overlap_pixels=row.get('mask_overlap_pixels', 0),
|
| 85 |
+
+ discarded_mask_pixels=row.get('discarded_mask_pixels', {}))
|
| 86 |
+
+
|
| 87 |
+
+ def sample_records(self):
|
| 88 |
+
+ return [{'index': i, 'key': row['key'], 'group': row['dataset_metadata'].get('scene', row['key']),
|
| 89 |
+
+ 'order': row['dataset_metadata'].get('source_view', row['key'])}
|
| 90 |
+
+ for i, row in enumerate(self.rows)]
|
| 91 |
+
+
|
| 92 |
+
+ def provenance(self):
|
| 93 |
+
+ return {**super().provenance(), 'manifest_sha256': sha256(self.manifest_path),
|
| 94 |
+
+ 'source_selection_sha256': self.manifest['source_selection_sha256'],
|
| 95 |
+
+ 'source_dataset': self.manifest['source_dataset'], 'gt_representation': 'exported GLB float32'}
|
| 96 |
+
diff --git a/preprocess/evaluation.py b/preprocess/evaluation.py
|
| 97 |
+
new file mode 100644
|
| 98 |
+
index 0000000..8f6dd03
|
| 99 |
+
--- /dev/null
|
| 100 |
+
+++ b/preprocess/evaluation.py
|
| 101 |
+
@@ -0,0 +1,171 @@
|
| 102 |
+
+"""Store and publish frozen evaluation images with one copy of each GT export."""
|
| 103 |
+
+import argparse
|
| 104 |
+
+from collections import defaultdict
|
| 105 |
+
+from concurrent.futures import ThreadPoolExecutor
|
| 106 |
+
+from copy import deepcopy
|
| 107 |
+
+import json
|
| 108 |
+
+from pathlib import Path
|
| 109 |
+
+from threading import Lock
|
| 110 |
+
+
|
| 111 |
+
+import numpy as np
|
| 112 |
+
+from PIL import Image
|
| 113 |
+
+
|
| 114 |
+
+from dataloader.frozen import SCHEMA
|
| 115 |
+
+from dataloader.geometry import artifact_path
|
| 116 |
+
+from preprocess.reproduction import DEFAULT_REPO, Publisher, package
|
| 117 |
+
+from preprocess.storage import atomic_json, link_artifact
|
| 118 |
+
+from utils.hashing import input_hashes, sha256
|
| 119 |
+
+from utils.paths import path_under
|
| 120 |
+
+
|
| 121 |
+
+
|
| 122 |
+
+def stage_selection(source, destination, *, workers=4):
|
| 123 |
+
+ """Verify and retain original image bytes and shared GT in a portable dataset."""
|
| 124 |
+
+ source, destination = Path(source).resolve(), Path(destination).resolve()
|
| 125 |
+
+ selection_path = source / 'selection.json'
|
| 126 |
+
+ original_digest = sha256(selection_path)
|
| 127 |
+
+ original = json.loads(selection_path.read_text())
|
| 128 |
+
+ if not original['frames'] or workers < 1:
|
| 129 |
+
+ raise ValueError('A nonempty selection and positive worker count are required')
|
| 130 |
+
+ if len({row['key'] for row in original['frames']}) != len(original['frames']):
|
| 131 |
+
+ raise ValueError('Selection sample keys must be unique')
|
| 132 |
+
+ destination.mkdir(parents=True, exist_ok=True)
|
| 133 |
+
+ saved = destination / 'manifest.json'
|
| 134 |
+
+ if saved.exists() and json.loads(saved.read_text()).get('source_selection_sha256') != original_digest:
|
| 135 |
+
+ raise ValueError('The destination contains a different frozen selection')
|
| 136 |
+
+ meshes, files, lock = {}, {}, Lock()
|
| 137 |
+
+
|
| 138 |
+
+ def view(frame):
|
| 139 |
+
+ folder = artifact_path(source, f"inputs/{frame['key']}")
|
| 140 |
+
+ with Image.open(folder / 'rgb.png') as image:
|
| 141 |
+
+ rgb = np.array(image.convert('RGB'))
|
| 142 |
+
+ with Image.open(folder / 'masks.png') as image:
|
| 143 |
+
+ masks = np.array(image)
|
| 144 |
+
+ if input_hashes(rgb, masks) != {key: frame[key] for key in ('rgb_sha256', 'masks_sha256')}:
|
| 145 |
+
+ raise ValueError(f"Saved evaluation RGB or masks changed: {frame['key']}")
|
| 146 |
+
+ row = deepcopy(frame)
|
| 147 |
+
+ row['source_sample_index'] = row.pop('sample_index')
|
| 148 |
+
+ row['source_gt_sha256'] = row.pop('gt_sha256')
|
| 149 |
+
+ view_files = {}
|
| 150 |
+
+ for key, filename in (('rgb', 'rgb.png'), ('masks', 'masks.png'), ('mask_preview', 'mask_preview.png')):
|
| 151 |
+
+ relative = f"views/{frame['key']}/{filename}"
|
| 152 |
+
+ path = folder / filename
|
| 153 |
+
+ digest = sha256(path)
|
| 154 |
+
+ link_artifact(path, artifact_path(destination, relative))
|
| 155 |
+
+ row[key] = relative
|
| 156 |
+
+ view_files[relative] = digest
|
| 157 |
+
+ mesh_source = (folder / 'ground_truth.glb').resolve()
|
| 158 |
+
+ with lock:
|
| 159 |
+
+ if mesh_source not in meshes:
|
| 160 |
+
+ digest = sha256(mesh_source)
|
| 161 |
+
+ relative = f'ground_truth/{digest}.glb'
|
| 162 |
+
+ link_artifact(mesh_source, destination / relative)
|
| 163 |
+
+ meshes[mesh_source] = relative
|
| 164 |
+
+ files[relative] = digest
|
| 165 |
+
+ row['ground_truth'] = meshes[mesh_source]
|
| 166 |
+
+ files.update(view_files)
|
| 167 |
+
+ return row
|
| 168 |
+
+
|
| 169 |
+
+ with ThreadPoolExecutor(max_workers=workers) as pool:
|
| 170 |
+
+ frames = []
|
| 171 |
+
+ for number, row in enumerate(pool.map(view, original['frames']), 1):
|
| 172 |
+
+ frames.append(row)
|
| 173 |
+
+ if number % 100 == 0:
|
| 174 |
+
+ print(f'VERIFIED {destination.name}: {number}/{len(original["frames"])} images', flush=True)
|
| 175 |
+
+ if sha256(selection_path) != original_digest:
|
| 176 |
+
+ raise ValueError('Source selection changed during dataset storage')
|
| 177 |
+
+ link_artifact(selection_path, destination / 'source_selection.json')
|
| 178 |
+
+ files['source_selection.json'] = original_digest
|
| 179 |
+
+ manifest = {'schema': SCHEMA, 'complete': True, 'source_dataset': original['dataset'],
|
| 180 |
+
+ 'source_selection_sha256': original_digest, 'selection_seed': original['selection_seed'],
|
| 181 |
+
+ 'source_provenance': original['dataset_provenance'], 'frames': frames,
|
| 182 |
+
+ 'gt_representation': 'Original exported GLB bytes; vertices use float32',
|
| 183 |
+
+ 'unique_gt_meshes': len(set(meshes.values())), 'files': dict(sorted(files.items()))}
|
| 184 |
+
+ atomic_json(saved, manifest)
|
| 185 |
+
+ print(f'READY {destination}: {len(frames)} images, {manifest["unique_gt_meshes"]} GT exports', flush=True)
|
| 186 |
+
+ return manifest
|
| 187 |
+
+
|
| 188 |
+
+
|
| 189 |
+
+def stage_cohort(source, destination, *, workers=4):
|
| 190 |
+
+ source, destination = Path(source).resolve(), Path(destination).resolve()
|
| 191 |
+
+ cohort = json.loads((source / 'benchmark_manifest.json').read_text())
|
| 192 |
+
+ if cohort.get('status') != 'ready':
|
| 193 |
+
+ raise ValueError('The complete evaluation cohort must pass preparation first')
|
| 194 |
+
+ result = {'schema': 'partprobe3d.frozen-evaluation-cohort.v1', 'complete': False, 'datasets': {}}
|
| 195 |
+
+ for name, item in cohort['datasets'].items():
|
| 196 |
+
+ part = artifact_path(destination, name)
|
| 197 |
+
+ selection = source / name / 'selection.json'
|
| 198 |
+
+ if sha256(selection) != item['selection_sha256']:
|
| 199 |
+
+ raise ValueError(f'Frozen selection checksum differs: {name}')
|
| 200 |
+
+ manifest = stage_selection(selection.parent, part, workers=workers)
|
| 201 |
+
+ if len(manifest['frames']) != item['requested_views']:
|
| 202 |
+
+ raise ValueError(f'Frozen selection count differs: {name}')
|
| 203 |
+
+ result['datasets'][name] = {'manifest': f'{name}/manifest.json', 'sha256': sha256(part / 'manifest.json'),
|
| 204 |
+
+ 'views': len(manifest['frames']), 'unique_gt_meshes': manifest['unique_gt_meshes']}
|
| 205 |
+
+ result.update(complete=True, total_views=sum(row['views'] for row in result['datasets'].values()))
|
| 206 |
+
+ atomic_json(destination / 'index.json', result)
|
| 207 |
+
+ return result
|
| 208 |
+
+
|
| 209 |
+
+
|
| 210 |
+
+def publish(source, output, repo=DEFAULT_REPO, *, workers=4, shard_bytes=1024**3):
|
| 211 |
+
+ """Publish optional evaluation archives through the verified project uploader."""
|
| 212 |
+
+ source, output = Path(source).resolve(), Path(output).resolve()
|
| 213 |
+
+ cohort = json.loads((source / 'index.json').read_text())
|
| 214 |
+
+ if not cohort.get('complete'):
|
| 215 |
+
+ raise ValueError('A complete portable cohort is required')
|
| 216 |
+
+ output.mkdir(parents=True, exist_ok=True)
|
| 217 |
+
+ publisher = Publisher(repo, workers=workers)
|
| 218 |
+
+ result = {'repo': repo, 'complete': False, 'total_views': cohort['total_views'],
|
| 219 |
+
+ 'component': 'optional/evaluation/indoor', 'datasets': cohort['datasets']}
|
| 220 |
+
+ atomic_json(output / 'status.json', result)
|
| 221 |
+
+ metadata = [source / 'index.json', *sorted(source.glob('*.md'))]
|
| 222 |
+
+ groups, checksums = [], {}
|
| 223 |
+
+ for name, record in cohort['datasets'].items():
|
| 224 |
+
+ root = artifact_path(source, name)
|
| 225 |
+
+ if sha256(root / 'manifest.json') != record['sha256']:
|
| 226 |
+
+ raise ValueError(f'Portable manifest changed: {name}')
|
| 227 |
+
+ manifest = json.loads((root / 'manifest.json').read_text())
|
| 228 |
+
+ scenes = defaultdict(set)
|
| 229 |
+
+ counts = defaultdict(int)
|
| 230 |
+
+ for row in manifest['frames']:
|
| 231 |
+
+ scene = row['dataset_metadata'].get('scene', row['key'])
|
| 232 |
+
+ scenes[scene].update(artifact_path(root, row[key])
|
| 233 |
+
+ for key in ('rgb', 'masks', 'mask_preview', 'ground_truth'))
|
| 234 |
+
+ counts[scene] += 1
|
| 235 |
+
+ metadata.extend([root / 'manifest.json', root / 'source_selection.json', *sorted(root.glob('*.md'))])
|
| 236 |
+
+ groups.extend((name, sorted(paths), counts[scene]) for scene, paths in sorted(scenes.items()))
|
| 237 |
+
+ checksums.update({artifact_path(root, key): value for key, value in manifest['files'].items()})
|
| 238 |
+
+ index = package(source, output, 'optional/evaluation', 'indoor',
|
| 239 |
+
+ destination=Path('datasets/evaluation/indoor'), kind='frozen-evaluation',
|
| 240 |
+
+ metadata=metadata, groups=groups, checksums=checksums,
|
| 241 |
+
+ details={'source_manifest_sha256': sha256(source / 'index.json'), 'views': cohort['total_views'],
|
| 242 |
+
+ 'datasets': cohort['datasets'], 'evaluation_only': True},
|
| 243 |
+
+ shard_bytes=shard_bytes, publisher=publisher)
|
| 244 |
+
+ result.update(complete=True, bytes=index['bytes'], archives=len(index['archives']),
|
| 245 |
+
+ revision=publisher.api.dataset_info(repo).sha)
|
| 246 |
+
+ atomic_json(output / 'status.json', result)
|
| 247 |
+
+ return result
|
| 248 |
+
+
|
| 249 |
+
+
|
| 250 |
+
+def main():
|
| 251 |
+
+ parser = argparse.ArgumentParser(description=__doc__)
|
| 252 |
+
+ commands = parser.add_subparsers(dest='command', required=True)
|
| 253 |
+
+ staging = commands.add_parser('store')
|
| 254 |
+
+ staging.add_argument('--source', type=Path, required=True)
|
| 255 |
+
+ staging.add_argument('--destination', type=Path, default=Path('datasets/evaluation/indoor'))
|
| 256 |
+
+ staging.add_argument('--workers', type=int, default=4)
|
| 257 |
+
+ publishing = commands.add_parser('publish')
|
| 258 |
+
+ publishing.add_argument('--source', type=Path, default=Path('datasets/evaluation/indoor'))
|
| 259 |
+
+ publishing.add_argument('--output', type=Path, default=Path('outputs/huggingface/evaluation'))
|
| 260 |
+
+ publishing.add_argument('--repo', default=DEFAULT_REPO)
|
| 261 |
+
+ publishing.add_argument('--workers', type=int, default=4)
|
| 262 |
+
+ args = parser.parse_args()
|
| 263 |
+
+ if args.workers < 1:
|
| 264 |
+
+ parser.error('--workers must be positive')
|
| 265 |
+
+ if args.command == 'store':
|
| 266 |
+
+ stage_cohort(path_under(args.source, 'outputs'), path_under(args.destination, 'datasets'), workers=args.workers)
|
| 267 |
+
+ else:
|
| 268 |
+
+ publish(path_under(args.source, 'datasets'), path_under(args.output, 'outputs'), args.repo, workers=args.workers)
|
| 269 |
+
+
|
| 270 |
+
+
|
| 271 |
+
+if __name__ == '__main__':
|
| 272 |
+
+ main()
|
| 273 |
+
diff --git a/evaluation/configs/picasso_frozen.json b/evaluation/configs/picasso_frozen.json
|
| 274 |
+
new file mode 100644
|
| 275 |
+
index 0000000..5c472dc
|
| 276 |
+
--- /dev/null
|
| 277 |
+
+++ b/evaluation/configs/picasso_frozen.json
|
| 278 |
+
@@ -0,0 +1,3 @@
|
| 279 |
+
+{
|
| 280 |
+
+ "root": "datasets/evaluation/indoor/picasso"
|
| 281 |
+
+}
|
| 282 |
+
diff --git a/evaluation/configs/messykitchen_frozen.json b/evaluation/configs/messykitchen_frozen.json
|
| 283 |
+
new file mode 100644
|
| 284 |
+
index 0000000..0191781
|
| 285 |
+
--- /dev/null
|
| 286 |
+
+++ b/evaluation/configs/messykitchen_frozen.json
|
| 287 |
+
@@ -0,0 +1,3 @@
|
| 288 |
+
+{
|
| 289 |
+
+ "root": "datasets/evaluation/indoor/messykitchen"
|
| 290 |
+
+}
|
| 291 |
+
diff --git a/evaluation/configs/front3d_frozen.json b/evaluation/configs/front3d_frozen.json
|
| 292 |
+
new file mode 100644
|
| 293 |
+
index 0000000..6087592
|
| 294 |
+
--- /dev/null
|
| 295 |
+
+++ b/evaluation/configs/front3d_frozen.json
|
| 296 |
+
@@ -0,0 +1,3 @@
|
| 297 |
+
+{
|
| 298 |
+
+ "root": "datasets/evaluation/indoor/3dfront"
|
| 299 |
+
+}
|
code/evaluation_manifest.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_git_revision": "290027fe9f281a21db978a48da21bb9be90e5517",
|
| 3 |
+
"patch_sha256": "4e996043fd61be711cb2fba624f89107040c1fe99dacbce7ba42c4067e47e765",
|
| 4 |
+
"files": {
|
| 5 |
+
"dataloader/registry.py": "97690914f4c50c9f7d31213bb9dab174bc740cdd62bf7b217ccfe456b6b387e7",
|
| 6 |
+
"dataloader/frozen.py": "5efdb2209519d556f363599226d0d511de14009529899813b48a5574432bc508",
|
| 7 |
+
"preprocess/evaluation.py": "e6c72bb985e38e219885db4dbc2c68d31c5f6dcac2a8c0f9fcd37aa86565ba19",
|
| 8 |
+
"evaluation/configs/picasso_frozen.json": "39a3bbd78f4a5014624c8a190669154a52013af374bbdd2253d549ff981dab2b",
|
| 9 |
+
"evaluation/configs/messykitchen_frozen.json": "5a8559c3fb7214dd44bc4918d30f580ef7ff18afbdde169f25bdc2710a00b262",
|
| 10 |
+
"evaluation/configs/front3d_frozen.json": "2a30f9abc55b3185e0bae28940766bc672a0710807a536fe9696d3ccd0882c2e"
|
| 11 |
+
}
|
| 12 |
+
}
|