Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1539, in _prepare_split_single
for key, record in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 131, in _generate_examples
for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
for filename, f in tar_iterator:
^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
for x in self.generator(*self.args):
~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1419, in _iter_from_urlpath
with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 976, in xopen
file_obj = fs.open(paths[0], mode)
File "<string>", line 3, in open
File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
return self._mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
return self._execute_mock_call(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
result = effect(*args, **kwargs)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 794, in wrapped
tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
~~~^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1401, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1579, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
avif unknown | __key__ string | __url__ string |
|---|---|---|
[
0,
0,
0,
32,
102,
116,
121,
112,
97,
118,
105,
102,
0,
0,
0,
0,
97,
118,
105,
102,
109,
105,
102,
49,
109,
105,
97,
102,
77,
65,
49,
65,
0,
0,
1,
187,
109,
101,
116,
97,
0,
0,
0,
0,
0,
0,
0,
33,
104,
100,
108,
114,... | images/002/0000116 | hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.tar |
[
0,
0,
0,
32,
102,
116,
121,
112,
97,
118,
105,
102,
0,
0,
0,
0,
97,
118,
105,
102,
109,
105,
102,
49,
109,
105,
97,
102,
77,
65,
49,
65,
0,
0,
1,
187,
109,
101,
116,
97,
0,
0,
0,
0,
0,
0,
0,
33,
104,
100,
108,
114,... | images/002/0000140 | hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.tar |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000304 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000356 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000504 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000576 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000806 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000856 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0000864 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
"AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAAG7bWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAA(...TRUNCATED) | images/002/0001388 | "hf://datasets/kulits/BrickFlow@4db71f2622730f69c409ee39e3a0303060f6d991/train/ic/shards/002/00000.t(...TRUNCATED) |
The data of BrickFlow, generated with ProcBrick. This repo contains the
connection atlas and BrickFlow's splits. See kulits/BrickFlow for the model.
The code of the brickflow and procbrick packages is on GitHub.
Contents
| folder | files | size | contents |
|---|---|---|---|
assets/ |
10 | 1.11 GiB | ProcBrick's assets: charts, atlas.index, atlas.tiles, pose_dictionary, parts.json, mates, sampling_policy.json, assembly_model, appearance_policy.npz, appearance_model |
train/pt/ |
3 | 19.4 GiB | pretraining: a directory of 100,000,000 trees of 100 parts (data, index, manifest.json) |
train/ic/ |
15,651 | 100.5 GiB | image-conditioned finetuning: 1,000,000 renders with their images |
val/procbrick/ |
207 | 1015 MiB | evaluation: 9,900 renders with their images |
A tree is built one part at a time through a compatible connector of a part already placed, so each prefix is a valid
structure. Trees are stored compressed; any tree, or its first k parts, decodes alone with assets/ to a BrickNet
Tree.
Renders show a prefix of each of their trees (assemblies/), with print variants and materials (appearance/; the
appearance policy gives each material's LDraw color), part counts (sizes.npy), a camera (frames.npy), and an image:
the images are AVIF (RGBA) members of uncompressed tar shards, shards/NNN/SSSSS.tar holding renders of NNN parts.
Renders 2j and 2j + 1 are partners whose part counts sum to 102.
The BrickNet evaluation set (512 models from BrickNet's validation split) comes with the BrickNet dataset: request
access to BrickNet, then download brickflow_val.tar.xz (46 MiB) from the BrickNet dataset folder and unpack it into
procbrick/ in BrickNet's data directory to get val/bricknet.
The formats are specified in the DATA.md files of the procbrick and brickflow packages.
Download
The packages fetch folders into procbrick/ in BrickNet's data directory ($BRICKNET_DATA, else the platform
user-data directory), at the same paths as here:
pip install procbrick
python -m procbrick fetch # assets and BrickNet's colliders
python -m procbrick fetch train/pt # train/pt, train/ic, val/procbrick
pip install brick-flow
python -m brickflow fetch # assets, val/procbrick, and the PT-L weights
python -m brickflow fetch train/ic
import procbrick
trees = procbrick.load_trees("train/pt", range(1000), parts=10) # the first 10 parts of the first 1,000 trees
renders = procbrick.load_renders("val/procbrick") # the evaluation set
open("render.avif", "wb").write(renders.image_bytes(0)) # RGBA image of render 0
License
The data are under the MIT license.
Citation
@InProceedings{kulits2026brickflow,
author = {Kulits, Peter and Schmid, Cordelia},
title = {BrickFlow: Connectivity-Guided Brick Reconstruction},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}
- Downloads last month
- 13