tokeron/country-flags-variations
收藏Hugging Face2026-04-18 更新2026-04-26 收录
下载链接:
https://hf-mirror.com/datasets/tokeron/country-flags-variations
下载链接
链接失效反馈官方服务:
资源简介:
---
license: other
task_categories:
- image-classification
- text-to-image
language:
- en
tags:
- flags
- countries
- flux
- synthetic
size_categories:
- 1K<n<10K
pretty_name: Country Flag Variations (Flux 2-dev, image-verified)
---
# Country Flag Variations (Flux 2-dev, image-verified)
Synthetic flag images generated with Flux 2-dev from the prompt
`"The national flag of {country}"`, then filtered by a strict
image-to-image verification against official reference flags.
## Dataset summary
- **71 countries**, **1395 images**
- Each country has 15-20 verified images (originally 20 per country;
images that disagreed with the reference flag were removed)
- **Split:** per-country 80 / 20 train/val (deterministic by sorted seed)
- **Image size:** 1024 × 1024, PNG
## Columns
| column | type | description |
|-----------------|--------|-----------------------------------------------------|
| `country` | string | Country name used in the source prompt |
| `alpha2` | string | ISO 3166-1 alpha-2 code (e.g. `US`, `AR`, `IL`) |
| `seed` | int64 | Flux random seed |
| `image` | Image | 1024×1024 PNG |
| `source_prompt` | string | `"The national flag of {country}"` |
| `description` | string | Canonical description of the country's flag |
## Generation
Each image was produced by
[`black-forest-labs/FLUX.2-dev`](https://huggingface.co/black-forest-labs/FLUX.2-dev) with:
- `num_inference_steps=28`
- `guidance_scale=4.0`
- `height=width=1024`
- bfloat16 weights
## Verification (image-to-image)
Every generated image was compared against the official reference flag of the
same country using `gemini-2.5-flash` with both images in the context. The
model returned YES only if:
1. **Correct colors** (the main colors of the reference flag)
2. **Correct placement and order** (stripes, quarters, hoist side)
3. **Correct major symbols** — stars, crosses, emblems, crescents, shields:
present when the reference has them; absent when it does not
These differences were **explicitly ignored** (and do not cause a NO):
exact shade of color, fine interior detail of emblems, text legibility /
spelling, aspect ratio, flat vs. waving vs. on-a-pole rendering, exact
star count, proportions.
Images that returned NO were removed from the dataset.
## Coverage
61 countries from the original 193-country attempt were excluded because
fewer than 15 of their 20 Flux generations passed verification — typically
countries whose flag contains a detailed central emblem or coat of arms
that Flux does not render correctly.
## Usage
```python
from datasets import load_dataset
ds = load_dataset("tokeron/country-flags-variations")
sample = ds["train"][0]
sample["image"].save("example.png")
print(sample["country"], sample["seed"])
print(sample["description"])
```
## Countries (71)
| country | verified images |
|---------|-----------------|
| Argentina | 20 |
| Argentine | 20 |
| Australia | 20 |
| Austria | 19 |
| Bahrain | 20 |
| Bangladesh | 17 |
| Belgium | 20 |
| Brazil | 20 |
| Burkina | 20 |
| Canada | 20 |
| Chile | 20 |
| China | 20 |
| Colombia | 20 |
| Cuba | 20 |
| Denmark | 20 |
| Dominican Republic | 16 |
| Ecuador | 17 |
| Egypt | 20 |
| Finland | 20 |
| France | 20 |
| Germany FRG | 20 |
| Ghana | 20 |
| Greece | 20 |
| Hong Kong | 20 |
| Hungary | 20 |
| Iceland | 20 |
| India | 20 |
| Indonesia | 20 |
| Iran | 20 |
| Ireland | 20 |
| Israel | 20 |
| Italy | 20 |
| Jamaica | 20 |
| Japan | 20 |
| Jordan | 16 |
| Kuwait | 20 |
| Laos | 20 |
| Lebanon | 20 |
| Libya | 20 |
| Malaysia | 20 |
| Mali | 20 |
| Mexico | 20 |
| Morocco | 20 |
| Netherlands | 20 |
| Nicaragua | 17 |
| North Korea | 20 |
| Norway | 20 |
| Pakistan | 20 |
| Philippines | 20 |
| Poland | 20 |
| Portugal | 20 |
| Puerto Rico | 20 |
| Qatar | 20 |
| Saudi Arabia | 20 |
| Singapore | 20 |
| South Africa | 20 |
| South Korea | 20 |
| Spain | 20 |
| Sweden | 20 |
| Switzerland | 20 |
| Syria | 19 |
| Taiwan | 20 |
| Thailand | 20 |
| Tunisia | 20 |
| Turkey | 20 |
| UAE | 18 |
| UK | 20 |
| USA | 20 |
| Uruguay | 20 |
| Venezuela | 16 |
| Vietnam | 20 |
## License
Images generated with Flux 2-dev. Use of this dataset is subject to the
[FLUX.2-dev license](https://huggingface.co/black-forest-labs/FLUX.2-dev).
提供机构:
tokeron



