--- license: cc-by-4.0 pretty_name: MGFlow-T2I language: - en task_categories: - text-to-image size_categories: - 100K.png` and `.json` in WebDataset format. `metadata.jsonl` maps every image ID to its prompt and location in a shard; `manifest.json` lists the per-shard counts and SHA-256 checksums. ## Read a sample Install `huggingface_hub` and `pillow`. This example streams the first metadata record and its image without downloading the full dataset or a complete shard: ```python import json import tarfile from urllib.request import urlopen from huggingface_hub import hf_hub_url from PIL import Image repo_id = "MGFlow/MGFlow-T2I" metadata_url = hf_hub_url(repo_id, "metadata.jsonl", repo_type="dataset") with urlopen(metadata_url) as response: sample = json.loads(response.readline()) shard_url = hf_hub_url(repo_id, sample["shard"], repo_type="dataset") with urlopen(shard_url) as response: with tarfile.open(fileobj=response, mode="r|") as archive: for member in archive: if member.name == sample["image"]: with archive.extractfile(member) as image_file: image = Image.open(image_file).convert("RGB") break print(sample["prompt"]) print(image.size) ``` ## License Generated images and MGFlow-authored metadata are released under CC BY 4.0. Third-party prompts retain their original licenses; see [LICENSE.md](LICENSE.md) and [ATTRIBUTION.md](ATTRIBUTION.md).