konpat/lsun-bedroom-256-lmdb
收藏Hugging Face2026-02-04 更新2026-03-29 收录
下载链接:
https://hf-mirror.com/datasets/konpat/lsun-bedroom-256-lmdb
下载链接
链接失效反馈官方服务:
资源简介:
---
pretty_name: "LSUN Bedroom 256x256 (LMDB) for DiffAE"
tags:
- lsun
- bedroom
- lmdb
- images
- diffae
task_categories:
- unconditional-image-generation
size_categories:
- 1M<n<10M
license: other
---
# LSUN Bedroom 256x256 (LMDB) for DiffAE
This dataset repo hosts the LSUN Bedroom **train** split packaged as a single LMDB
(`bedroom256.lmdb`) compatible with DiffAE’s legacy LMDB reader and the new
HF-backed `bedroom_hf` wrapper.
Related project: https://github.com/konpatp/diffae
**What’s inside**
- `bedroom256.lmdb/data.mdb`
- `bedroom256.lmdb/lock.mdb`
**Format**
- Keys: `256-0000000`, `256-0000001`, ... (7-digit zero-padded index)
- Values: RGB images encoded as WebP (quality ~90), resized to 256x256
- Total images: **3,033,042**
- Size: ~**49.1 GB** for `data.mdb` (plus small `lock.mdb`)
**Origin / Licensing**
This is a repackaging of the LSUN Bedroom dataset. We do not own the data.
Please consult the original LSUN terms and cite the LSUN paper if you use it.
**How to download (raw LMDB)**
```python
from huggingface_hub import hf_hub_download
repo_id = "konpat/lsun-bedroom-256-lmdb"
data_path = hf_hub_download(
repo_id=repo_id,
repo_type="dataset",
filename="bedroom256.lmdb/data.mdb",
local_dir="./hf_lmdb",
)
lock_path = hf_hub_download(
repo_id=repo_id,
repo_type="dataset",
filename="bedroom256.lmdb/lock.mdb",
local_dir="./hf_lmdb",
)
```
**How to use in DiffAE**
In a YAML config:
```yaml
data:
name: bedroom_hf
hf:
bedroom_repo_id: konpat/lsun-bedroom-256-lmdb
```
Or programmatically:
```python
from diffae.hf_data import BedroomHFDataset
dset = BedroomHFDataset(repo_id="konpat/lsun-bedroom-256-lmdb")
```
pretty_name: "用于DiffAE的LSUN卧室256×256(LMDB)数据集"
tags:
- LSUN
- 卧室
- LMDB
- 图像
- DiffAE
task_categories:
- 无条件图像生成
size_categories:
- 100万<n<1000万
license: 其他授权
---
# 用于DiffAE的LSUN卧室256×256(LMDB)数据集
本数据集仓库托管了LSUN卧室**训练**子集,打包为单个LMDB文件`bedroom256.lmdb`,兼容DiffAE的传统LMDB读取器与新的基于Hugging Face的`bedroom_hf`封装工具。
相关项目:https://github.com/konpatp/diffae
## 数据集内容
- `bedroom256.lmdb/data.mdb`
- `bedroom256.lmdb/lock.mdb`
## 数据格式
- 键名:`256-0000000`、`256-0000001`……(采用7位零填充索引格式)
- 数值:分辨率调整为256×256的RGB图像,以WebP格式编码(质量约90)
- 总图像量:**3,033,042**张
- 数据集大小:`data.mdb`约**49.1 GB**(附带小型`lock.mdb`文件)
## 来源与授权
本数据集为LSUN卧室数据集的重新打包版本,我方不持有该数据的版权。若使用该数据集,请遵循原始LSUN使用条款并引用LSUN相关论文。
## 原始LMDB文件下载方法
python
from huggingface_hub import hf_hub_download
repo_id = "konpat/lsun-bedroom-256-lmdb"
data_path = hf_hub_download(
repo_id=repo_id,
repo_type="dataset",
filename="bedroom256.lmdb/data.mdb",
local_dir="./hf_lmdb",
)
lock_path = hf_hub_download(
repo_id=repo_id,
repo_type="dataset",
filename="bedroom256.lmdb/lock.mdb",
local_dir="./hf_lmdb",
)
## DiffAE中使用方法
在YAML配置文件中:
yaml
data:
name: bedroom_hf
hf:
bedroom_repo_id: konpat/lsun-bedroom-256-lmdb
或通过编程方式调用:
python
from diffae.hf_data import BedroomHFDataset
dset = BedroomHFDataset(repo_id="konpat/lsun-bedroom-256-lmdb")
提供机构:
konpat


