PACS-DG-SigLIP2 / README.md
prithivMLmods's picture
Update README.md
c03d88e verified
|
raw
history blame
427 Bytes
---
license: apache-2.0
datasets:
- flwrlabs/pacs
---
```py
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("flwrlabs/pacs")
# Extract unique masterCategory values (assuming it's a string field)
labels = sorted(set(example["domain"] for example in dataset["train"]))
# Create id2label mapping
id2label = {str(i): label for i, label in enumerate(labels)}
# Print the mapping
print(id2label)
```