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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: Amazon Berkeley Objects GLB
|
| 4 |
+
tags:
|
| 5 |
+
- 3d
|
| 6 |
+
- gltf
|
| 7 |
+
- glb
|
| 8 |
+
- web
|
| 9 |
+
- three.js
|
| 10 |
+
- 67js
|
| 11 |
+
- furniture
|
| 12 |
+
- pbr
|
| 13 |
+
- amazon-berkeley-objects
|
| 14 |
+
size_categories:
|
| 15 |
+
- 1K<n<10K
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path:
|
| 21 |
+
- "thumbs/*.webp"
|
| 22 |
+
- "thumbs/metadata.jsonl"
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Amazon Berkeley Objects GLB
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
+
The 7,953 3D models of [Amazon Berkeley Objects](https://amazon-berkeley-objects.s3.amazonaws.com/index.html)
|
| 30 |
+
(ABO), made small enough to load in a browser. Each product is one `.glb` with its full PBR material (colour, normal,
|
| 31 |
+
metallic and roughness maps), at real size in metres, Y up. Most stand on Y = 0.
|
| 32 |
+
|
| 33 |
+
<video src="https://huggingface.co/datasets/codepawl/abo-glb/resolve/main/assets/preview.mp4" autoplay loop muted playsinline width="100%"></video>
|
| 34 |
+
|
| 35 |
+
| | Amazon's files | This dataset |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| Models | 7,953 | 7,953 |
|
| 38 |
+
| Total size | 165.6 GB | 12.2 GB |
|
| 39 |
+
| Average file | 20.8 MB | 1.5 MB |
|
| 40 |
+
| Triangles | 340,137,126 | 340,137,126 (not simplified) |
|
| 41 |
+
| Textures | PNG or JPEG, up to 4096 px | WebP, up to 2048 px |
|
| 42 |
+
| Geometry | plain buffers | `EXT_meshopt_compression` |
|
| 43 |
+
|
| 44 |
+
Example: the Stone & Beam Bradbury Chesterfield leather sofa is 57.1 MB in ABO and
|
| 45 |
+
2.2 MB here.
|
| 46 |
+
|
| 47 |
+
Every model also comes as a GPU-ready copy with KTX2 textures, three simpler levels of detail and a collision hull,
|
| 48 |
+
for games and WebGPU. See [For games and WebGPU](#for-games-and-webgpu).
|
| 49 |
+
|
| 50 |
+
## Credit and licence
|
| 51 |
+
|
| 52 |
+
The 3D models, images and listing text are by **Amazon.com**, from the Amazon Berkeley Objects dataset, licensed
|
| 53 |
+
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The dataset was built by Matthieu Guillaumin, Thomas
|
| 54 |
+
Dideriksen, Kenan Deng, Himanshu Arora, Arnab Dhua, Xi (Brian) Zhang, Tomas Yago-Vicente (Amazon.com), Jasmine Collins,
|
| 55 |
+
Shubham Goel and Jitendra Malik (UC Berkeley).
|
| 56 |
+
|
| 57 |
+
This dataset changes the files: it re-encodes the textures, resizes them to at most 2048 px and compresses the geometry.
|
| 58 |
+
The `lods/` copies also have fewer triangles. The other files do not change what the models show.
|
| 59 |
+
A copy of the licence is in `LICENSE-CC-BY-4.0.txt`. CodePawl is not
|
| 60 |
+
affiliated with Amazon, and Amazon does not endorse this dataset. Brand and product names belong to their owners.
|
| 61 |
+
|
| 62 |
+
If you use the models in a publication, cite the ABO paper:
|
| 63 |
+
|
| 64 |
+
```bibtex
|
| 65 |
+
@article{collins2022abo,
|
| 66 |
+
title={ABO: Dataset and Benchmarks for Real-World 3D Object Understanding},
|
| 67 |
+
author={Collins, Jasmine and Goel, Shubham and Deng, Kenan and Luthra, Achleshwar and
|
| 68 |
+
Xu, Leon and Gundogdu, Erhan and Zhang, Xi and Yago Vicente, Tomas F and
|
| 69 |
+
Dideriksen, Thomas and Arora, Himanshu and Guillaumin, Matthieu and
|
| 70 |
+
Malik, Jitendra},
|
| 71 |
+
journal={CVPR},
|
| 72 |
+
year={2022}
|
| 73 |
+
}
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## What is in it
|
| 77 |
+
|
| 78 |
+
- `objects/<id>/<id>.glb`: one file per product, WebP textures. The id is ABO's `3dmodel_id`, an Amazon product code.
|
| 79 |
+
- `objects_ktx2/<id>/<id>.glb`: the same model with KTX2 (Basis Universal) textures and mipmaps, 9.2 GB in total.
|
| 80 |
+
- `lods/<id>/<id>_lod1.glb`, `_lod2`, `_lod3`: simplified copies with KTX2 textures, 4.7 GB in total.
|
| 81 |
+
- `collision_hulls.json`: one convex hull per model (at most 64 points, in the glb's frame) with its faces and volume.
|
| 82 |
+
- `thumbs/<id>.webp`: a 512 px render of each pack file, with `thumbs/metadata.jsonl` for the Dataset Viewer.
|
| 83 |
+
- `metadata.jsonl`: one line per model: English product name where a listing has one, product type, brand, colour,
|
| 84 |
+
material, style, the catalogue size and weight, every Amazon item id that uses the model, the model's measured size
|
| 85 |
+
in metres, triangles, and bytes before and after.
|
| 86 |
+
|
| 87 |
+
Most types: chair (1,184), sofa (859), rug (817), wall art (599), table (584), home furniture and decor (549), lamp (345), stool seating (340), ottoman (288), pillow (275), headboard (206), light fixture (195).
|
| 88 |
+
|
| 89 |
+
## Download
|
| 90 |
+
|
| 91 |
+
All files, about 12.2 GB:
|
| 92 |
+
|
| 93 |
+
```bash
|
| 94 |
+
hf download codepawl/abo-glb --repo-type dataset --local-dir abo-glb
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
One model from Python:
|
| 98 |
+
|
| 99 |
+
```python
|
| 100 |
+
from huggingface_hub import hf_hub_download
|
| 101 |
+
|
| 102 |
+
path = hf_hub_download("codepawl/abo-glb", "objects/B0714QGC72/B0714QGC72.glb", repo_type="dataset")
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
## Loading in 67js
|
| 106 |
+
|
| 107 |
+
[67js](https://github.com/anxuanng/67.js) is a WebGL2 engine for scenes that AI agents build and render. The preview
|
| 108 |
+
above is 67js drawing the pack files. Its glTF addon reads the meshopt geometry, the WebP textures and all four PBR maps.
|
| 109 |
+
WebP textures need a 67js release after 0.15.0. Until then, build 67js from the main branch.
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
npm install 67js@npm:@codepawlhq/67js three
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
```js
|
| 116 |
+
import { Renderer67 } from '67js';
|
| 117 |
+
import { loadGltf } from '67js/addons/gltf';
|
| 118 |
+
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
| 119 |
+
|
| 120 |
+
const url = 'https://huggingface.co/datasets/codepawl/abo-glb/resolve/main/objects/B0714QGC72/B0714QGC72.glb';
|
| 121 |
+
const asset = await loadGltf(url, { decoders: { meshopt: MeshoptDecoder } });
|
| 122 |
+
const renderer = new Renderer67(document.querySelector('canvas'), asset.parts, { samples: 4 });
|
| 123 |
+
renderer.render({ eye: [1.6, 1.1, 2.4], target: [0, 0.4, 0] });
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
## Loading in three.js
|
| 127 |
+
|
| 128 |
+
```js
|
| 129 |
+
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
| 130 |
+
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
| 131 |
+
|
| 132 |
+
const loader = new GLTFLoader();
|
| 133 |
+
loader.setMeshoptDecoder(MeshoptDecoder);
|
| 134 |
+
loader.load('B0714QGC72.glb', (gltf) => scene.add(gltf.scene));
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
## For games and WebGPU
|
| 138 |
+
|
| 139 |
+
The WebP files are small to download, but a browser decodes WebP into plain RGBA, 4 bytes a pixel. The KTX2 copies
|
| 140 |
+
stay compressed on the GPU: Basis Universal transcodes to BC7 on desktop and ASTC on phones, 1 byte a pixel.
|
| 141 |
+
|
| 142 |
+
| Level | Triangles, whole pack | Texture edge | Files, whole pack |
|
| 143 |
+
|---|---|---|---|
|
| 144 |
+
| lod0 (`objects_ktx2/`) | 340,137,126 | 2048 px (normal map 1024 px) | 9.2 GB |
|
| 145 |
+
| lod1 | 170,725,368 | 1024 px | 3.1 GB |
|
| 146 |
+
| lod2 | 69,775,173 | 512 px | 1.1 GB |
|
| 147 |
+
| lod3 | 24,144,651 | 256 px | 0.4 GB |
|
| 148 |
+
|
| 149 |
+
Texture memory on the GPU with mip chains, worked out from the texture sizes in each file:
|
| 150 |
+
|
| 151 |
+
| | WebP copy | KTX2 copy |
|
| 152 |
+
|---|---|---|
|
| 153 |
+
| One model, median | 64 MiB | 12 MiB |
|
| 154 |
+
| All 7,953 models | 482 GiB | 91 GiB |
|
| 155 |
+
|
| 156 |
+
### Whole set, 7,953 objects
|
| 157 |
+
|
| 158 |
+
| Level | Triangles, sum | Triangles vs lod0 (median per object) | File size, sum | File size median (p10, p90) | Texture |
|
| 159 |
+
| --- | --- | --- | --- | --- | --- |
|
| 160 |
+
| lod0 | 340,137,126 | 100% | 9236.9 MB | 1066 (p10 449, p90 1801) KiB | 2048 px |
|
| 161 |
+
| lod1 | 170,725,368 | 50% | 3063.9 MB | 330 (p10 156, p90 561) KiB | 1024 px |
|
| 162 |
+
| lod2 | 69,775,173 | 20% | 1144.8 MB | 115 (p10 59, p90 203) KiB | 512 px |
|
| 163 |
+
| lod3 | 24,144,651 | 6% | 448.7 MB | 40 (p10 23, p90 81) KiB | 256 px |
|
| 164 |
+
|
| 165 |
+
WebP pack (objects/): 12228.0 MB, median 1194 (p10 318, p90 3091) KiB.
|
| 166 |
+
KTX2 pack (objects_ktx2/): 9236.9 MB. All LODs together: 4657.4 MB.
|
| 167 |
+
|
| 168 |
+
### Measured load time and VRAM: 20 objects, 5 runs each (3 for LODs)
|
| 169 |
+
|
| 170 |
+
Measured on an RTX 3060 in headless Chrome 156 with the WebGPU backend. KTX2 textures transcode to BC7 on this GPU.
|
| 171 |
+
|
| 172 |
+
| Metric | WebP pack | KTX2 | Change |
|
| 173 |
+
| --- | --- | --- | --- |
|
| 174 |
+
| Texture VRAM, MiB (three, as uploaded) | 64.00 (p10 64.00, p90 64.00) | 12.00 (p10 12.00, p90 12.00) | 0.19x |
|
| 175 |
+
| Geometry VRAM, KiB (three) | 293 (p10 42, p90 1239) | 293 (p10 42, p90 1239) | 1.00x |
|
| 176 |
+
| Texture + geometry, MiB (three) | 64.27 (p10 64.01, p90 69.17) | 12.27 (p10 12.01, p90 17.17) | 0.19x |
|
| 177 |
+
| Texture VRAM, MiB (67js accounting) | 64.00 (p10 64.00, p90 64.00) | 12.00 (p10 12.00, p90 12.00) | 0.19x |
|
| 178 |
+
| three load ms (fetch + parse + decode) | 104.1 (p10 51.8, p90 329.1) | 69.6 (p10 40.2, p90 182.2) | 0.67x |
|
| 179 |
+
| three load + first frame ms | 114.7 (p10 60.2, p90 338.4) | 75.6 (p10 48.3, p90 187.0) | 0.66x |
|
| 180 |
+
| 67js load ms | 171.7 (p10 101.4, p90 576.3) | 103.2 (p10 81.0, p90 203.0) | 0.60x |
|
| 181 |
+
|
| 182 |
+
Texture formats seen: three webp rgba8, three ktx2 bc7, 67js webp rgba8, 67js ktx2 bc7.
|
| 183 |
+
|
| 184 |
+
| LOD | Triangles (median) | Texture + geometry VRAM, MiB (three) | three load ms | 67js load ms |
|
| 185 |
+
| --- | --- | --- | --- | --- |
|
| 186 |
+
| lod0 (objects_ktx2) | 19484 | 12.27 | 69.6 | 103.2 |
|
| 187 |
+
| lod1 | 9742 | 3.15 | 23.7 | 39.0 |
|
| 188 |
+
| lod2 | 3896 | 0.82 | 9.3 | 20.1 |
|
| 189 |
+
| lod3 | 1168 | 0.21 | 6.9 | 14.6 |
|
| 190 |
+
|
| 191 |
+
Encoding: colour and metallic-roughness maps are ETC1S, normal maps are UASTC at half the edge so that their
|
| 192 |
+
directions survive. Each KTX2 texture was encoded from Amazon's own image, not from the WebP copy. The LODs come from
|
| 193 |
+
meshoptimizer's simplifier at 50%, 20% and 6% of the triangles, and stop early when the error grows too large.
|
| 194 |
+
|
| 195 |
+
Load a KTX2 model in three.js with `WebGPURenderer`:
|
| 196 |
+
|
| 197 |
+
```js
|
| 198 |
+
import * as THREE from 'three';
|
| 199 |
+
import { WebGPURenderer } from 'three/webgpu';
|
| 200 |
+
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
| 201 |
+
import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';
|
| 202 |
+
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
| 203 |
+
|
| 204 |
+
const renderer = new WebGPURenderer({ antialias: true });
|
| 205 |
+
await renderer.init(); // the transcoder needs to know which compressed formats this device takes
|
| 206 |
+
|
| 207 |
+
const ktx2Loader = new KTX2Loader()
|
| 208 |
+
.setTranscoderPath('https://cdn.jsdelivr.net/npm/three@0.187.0/examples/jsm/libs/basis/')
|
| 209 |
+
.detectSupport(renderer);
|
| 210 |
+
const loader = new GLTFLoader().setKTX2Loader(ktx2Loader).setMeshoptDecoder(MeshoptDecoder);
|
| 211 |
+
const gltf = await loader.loadAsync('https://huggingface.co/datasets/codepawl/abo-glb/resolve/main/objects_ktx2/B0714QGC72/B0714QGC72.glb');
|
| 212 |
+
scene.add(gltf.scene); // far away: lods/B0714QGC72/B0714QGC72_lod2.glb
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
The same file in 67js:
|
| 216 |
+
|
| 217 |
+
```js
|
| 218 |
+
import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';
|
| 219 |
+
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
|
| 220 |
+
import { loadGltf, ktx2WorkerConfigFor } from '67js/addons/gltf';
|
| 221 |
+
|
| 222 |
+
const ktx2 = new KTX2Loader().setTranscoderPath('https://cdn.jsdelivr.net/npm/three@0.187.0/examples/jsm/libs/basis/');
|
| 223 |
+
ktx2.workerConfig = ktx2WorkerConfigFor(renderer.context); // renderer: your Renderer67
|
| 224 |
+
const asset = await loadGltf('https://huggingface.co/datasets/codepawl/abo-glb/resolve/main/objects_ktx2/B0714QGC72/B0714QGC72.glb', {
|
| 225 |
+
decoders: { ktx2, meshopt: MeshoptDecoder },
|
| 226 |
+
});
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
## How the files were made
|
| 230 |
+
|
| 231 |
+
1. List the 7,953 GLB files under `3dmodels/original/` in ABO's public S3 bucket (165.6 GB on 2026-11-04).
|
| 232 |
+
2. Download each file and check its byte size against the listing.
|
| 233 |
+
3. Optimize with glTF Transform: dedup, prune and weld. Convert every texture to WebP at quality 88, at most 2048 px.
|
| 234 |
+
Compress the geometry with meshopt. Triangles, materials and node transforms stay as they are.
|
| 235 |
+
4. From the same source file, write the KTX2 copy and the three LODs with toktx 4.4.2.
|
| 236 |
+
5. Build the convex hull with quickhull3d and cut it to 64 points by farthest point sampling.
|
| 237 |
+
6. Join the ABO listings to each model by `3dmodel_id` for the names and product data.
|
| 238 |
+
7. Render a 512 px thumbnail of every pack file in headless Chrome.
|
| 239 |
+
|
| 240 |
+
Before the full run, 32 objects were rendered from Amazon's file and from the pack file with the
|
| 241 |
+
same camera. The mean pixel difference was 0.12 to 1.75 out of 255.
|
| 242 |
+
|
| 243 |
+
## Known gaps
|
| 244 |
+
|
| 245 |
+
ABO places some products by use, so 1,338 models reach below Y = 0: most are wall art (598), pillows (192), light
|
| 246 |
+
fixtures (179) and mirrors (107). Wall art and mirrors have their back on
|
| 247 |
+
Z = 0. Listing text comes from many Amazon stores, so some names are in other languages and some fields are empty. The
|
| 248 |
+
textures are lossy WebP or Basis, so use ABO's own files when you need the 4096 px maps. The hulls are convex, so a chair or a
|
| 249 |
+
shelf collides as one solid block.
|