pradhaansbhat commited on
Commit
28d4a45
·
verified ·
1 Parent(s): 9f7653b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +104 -0
README.md CHANGED
@@ -1,3 +1,107 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ task_categories:
4
+ - image-to-image
5
+ tags:
6
+ - Generative Modeling
7
+ - Image Editing
8
+ - Geometric Editing
9
+ - 3D Vision
10
+ size_categories:
11
+ - 100K<n<1M
12
+ language:
13
+ - en
14
+ configs:
15
+ - config_name: 100K-Syn
16
+ data_files:
17
+ - split: train
18
+ path: data/100K-Syn/*.tar
19
+ - config_name: 10K-Objectron
20
+ data_files:
21
+ - split: train
22
+ path: data/10K-Objectron/*.tar
23
+ - config_name: 10K-Syn
24
+ data_files:
25
+ - split: train
26
+ path: data/10K-Syn/*.tar
27
  ---
28
+
29
+ # Thinking-In-Boxes: 3D Editing in Real Images Made Easy
30
+
31
+ [🌐Project Page](https://thinking-in-boxes.github.io/) | [📄arXiv](https://arxiv.org/abs/2606.20556) | [🎨Code (Coming Soon)](#)
32
+
33
+ This is the training dataset used in the paper **Thinking In Boxes: 3D Editing in Real Images Made Easy**
34
+
35
+ Thinking-In-Boxes is an Image-to-Image Generative model for Geometric Image Editing.
36
+ This dataset consists of images of 1-2 object scenes placed on a floor and rendered from two viewpoints.
37
+ In addition, it includes our scene representation where objects as represented as 3D Coloured Boxes placed on a shaded floor, which disambiguates object and camera transformations.
38
+
39
+ ## Dataset Structure
40
+
41
+ This dataset contains three independent subsets, each stored as WebDataset `.tar` shards:
42
+
43
+ | Subset | Folder | Approx. size | Description |
44
+ |---|---|---|---|
45
+ | 100K-Syn | `data/100K-Syn/` | 100,000 scenes | Synthetic 2-object scenes used in Stage-1 finetuning |
46
+ | 10K-Objectron | `data/10K-Objectron/` | 10,000 scenes | Real-world Objectron-derived scenes used in Stage-2 finetuning |
47
+ | 10K-Syn | `data/10K-Syn/` | 10,000 scenes | Synthetic 2-object scenes used in Stage-2 finetuning |
48
+
49
+ Each "scene" (sample) contains 4 files:
50
+
51
+ - `bbox_0.png`, `bbox_1.png` — scene representations for source and target configurations.
52
+ - `rgb_0.png`, `rgb_1.png` — RGB renders representing source and target configurations.
53
+
54
+ **Note**: The *.png files for the 100K-Syn and 10K-Syn subsets are in 512x512 resolution, and 1440x1920 resolution for the 10K-Objectron subset.
55
+
56
+ ## Usage
57
+
58
+ Each subset is loaded independently via `data_dir` (all share the same `train` split label — `data_dir` is what distinguishes them, not `split`):
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ ds_100K_Syn = load_dataset("pradhaansbhat/Thinking-In-Boxes", data_dir="data/100K-Syn", split="train")
64
+ ds_10K_Objectron = load_dataset("pradhaansbhat/Thinking-In-Boxes", data_dir="data/10K-Objectron", split="train")
65
+
66
+ print(ds_100K_Syn[0].keys())
67
+ # dict_keys(['bbox_0.png', 'bbox_1.png', 'rgb_0.png', 'rgb_1.png', '__key__', '__url__'])
68
+ ```
69
+
70
+ Alternatively, using the named configs defined above:
71
+
72
+ ```python
73
+ from datasets import load_dataset
74
+
75
+ ds_100K_Syn = load_dataset("pradhaansbhat/Thinking-In-Boxes", "100K-Syn", split="train")
76
+ ds_10K_Objectron = load_dataset("pradhaansbhat/Thinking-In-Boxes", "10K-Objectron", split="train")
77
+ ds_10K_Syn = load_dataset("pradhaansbhat/Thinking-In-Boxes", "10K-Objectron", split="train")
78
+ ```
79
+
80
+ ### Merging subsets for training
81
+
82
+ ```python
83
+ from datasets import concatenate_datasets
84
+ from torch.utils.data import DataLoader
85
+
86
+ merged = concatenate_datasets([ds_10K_Objectron, ds_10K_Syn]) # e.g. combine the two 10K sets
87
+ loader = DataLoader(merged, batch_size=2, shuffle=True, num_workers=8)
88
+ ```
89
+
90
+ **Note**: `__key__` values (e.g. `scene_000000`) are unique within each subset but **not** guaranteed unique across subsets after merging. This has no effect on training but is worth knowing if you rely on `__key__` for deduplication or lookups across merged data.
91
+
92
+ ## Citation
93
+
94
+ If you find our work useful, please consider citing:
95
+
96
+ ```bibtex
97
+ @misc{bhat2026thinkingboxes3dediting,
98
+ title = {Thinking in Boxes: 3D Editing in Real Images Made Easy},
99
+ author = {Pradhaan S Bhat and Naveen Chandra R and Rishubh Parihar and Vaibhav Vavilala and R. Venkatesh Babu and D. A. Forsyth and Anand Bhattad},
100
+ year = {2026},
101
+ eprint = {2606.20556},
102
+ archivePrefix = {arXiv},
103
+ primaryClass = {cs.CV},
104
+ url = {https://arxiv.org/abs/2606.20556}
105
+ }
106
+ ```
107
+ ---