Upload folder using huggingface_hub
Browse files- README.md +100 -0
- data/train-00000-of-00001.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-segmentation
|
| 5 |
+
- image-to-image
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- lithography
|
| 10 |
+
- semiconductor
|
| 11 |
+
- EUV
|
| 12 |
+
- OPC
|
| 13 |
+
- mask-optimization
|
| 14 |
+
- inverse-lithography
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
pretty_name: Litho-Tiny-100
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: default
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: data/train-*.parquet
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Litho-Tiny-100
|
| 26 |
+
|
| 27 |
+
A tiny placeholder lithography dataset shipped by
|
| 28 |
+
[OpenLithoHub](https://github.com/OpenLithoHub/OpenLithoHub) — **100 deterministic
|
| 29 |
+
(mask, aerial-image) pairs** generated from the project's rule-based PDK-aware
|
| 30 |
+
synthesizer and Gaussian-PSF forward model.
|
| 31 |
+
|
| 32 |
+
> ⚠️ **This dataset is intentionally tiny.** It exists to nail down the schema
|
| 33 |
+
> and prove `load_dataset("OpenLithoHub/litho-tiny")` works end-to-end. If you
|
| 34 |
+
> need a real research-scale dataset, see the strategic plan's discussion of the
|
| 35 |
+
> upcoming `Litho-1M` pre-training set, or use one of the upstream sources
|
| 36 |
+
> referenced in OpenLithoHub's data layer.
|
| 37 |
+
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
|
| 43 |
+
ds = load_dataset("OpenLithoHub/litho-tiny", split="train")
|
| 44 |
+
print(ds)
|
| 45 |
+
print(ds.column_names)
|
| 46 |
+
|
| 47 |
+
# Decode the first mask
|
| 48 |
+
import io, numpy as np
|
| 49 |
+
from PIL import Image
|
| 50 |
+
mask = np.array(Image.open(io.BytesIO(ds[0]["mask"]))) # (512, 512) uint8 in {0, 255}
|
| 51 |
+
aerial = np.array(Image.open(io.BytesIO(ds[0]["aerial"]))) # (512, 512) uint8
|
| 52 |
+
|
| 53 |
+
# Or use the raw float32 bytes for full precision
|
| 54 |
+
mask_f32 = np.frombuffer(ds[0]["mask_npy"], dtype=np.float32).reshape(512, 512)
|
| 55 |
+
aerial_f32 = np.frombuffer(ds[0]["aerial_npy"], dtype=np.float32).reshape(512, 512)
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Schema
|
| 59 |
+
|
| 60 |
+
| Column | Type | Description |
|
| 61 |
+
|---------------|--------------|----------------------------------------------------------------|
|
| 62 |
+
| `id` | string | Stable identifier `<pattern>-<index>`, e.g. `sram-007`. |
|
| 63 |
+
| `pattern` | string | One of `sram`, `contact_array`, `random_logic`. |
|
| 64 |
+
| `pdk` | string | PDK preset (always `freepdk45` for this tiny version). |
|
| 65 |
+
| `size_px` | int32 | Mask edge length (512). |
|
| 66 |
+
| `seed` | int32 | PRNG seed used by the synthesizer. |
|
| 67 |
+
| `mask` | bytes (PNG) | Binary mask, 8-bit grayscale, `{0, 255}`. |
|
| 68 |
+
| `aerial` | bytes (PNG) | Aerial-image intensity normalized to `[0, 255]` (clipped at 1).|
|
| 69 |
+
| `mask_npy` | bytes | Raw `float32` mask, row-major `(H, W)`. |
|
| 70 |
+
| `aerial_npy` | bytes | Raw `float32` aerial intensity (un-clipped), row-major `(H, W)`. |
|
| 71 |
+
|
| 72 |
+
Counts: 34 SRAM + 33 contact-array + 33 random-logic = **100 rows**, all in `train`.
|
| 73 |
+
|
| 74 |
+
## Reproducing
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
git clone https://github.com/OpenLithoHub/OpenLithoHub.git
|
| 78 |
+
cd OpenLithoHub
|
| 79 |
+
pip install -e '.[data]'
|
| 80 |
+
python scripts/build_litho_tiny.py --out out/litho-tiny
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
The script is fully deterministic; identical commits produce identical bytes.
|
| 84 |
+
|
| 85 |
+
## Forward model
|
| 86 |
+
|
| 87 |
+
The aerial images come from `openlithohub._utils.forward_model.simulate_aerial_image`
|
| 88 |
+
— a Gaussian-PSF approximation (`sigma_px=4.0`, `dose=1.0`) of the Hopkins forward
|
| 89 |
+
model, with circular padding. For a research-grade SOCS Hopkins simulation, see
|
| 90 |
+
`openlithohub._utils.hopkins.simulate_aerial_image_hopkins`.
|
| 91 |
+
|
| 92 |
+
## License
|
| 93 |
+
|
| 94 |
+
Apache-2.0 — same as OpenLithoHub itself. Patterns are synthetic and free of any
|
| 95 |
+
real fab IP.
|
| 96 |
+
|
| 97 |
+
## Citation
|
| 98 |
+
|
| 99 |
+
If this dataset helped your work, please ⭐ the
|
| 100 |
+
[OpenLithoHub repo](https://github.com/OpenLithoHub/OpenLithoHub) and cite the project.
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40279b90aafab4c08a8bde50f1b9b3f4f6cc516c8ad8ab69785f0cc726b5e687
|
| 3 |
+
size 14641964
|