Add files using upload-large-folder tool
Browse files- README.md +74 -0
- classifier/three/green/diamond/empty/106.png +3 -0
- classifier/three/green/diamond/empty/134.png +3 -0
- classifier/three/green/diamond/empty/136.png +3 -0
- classifier/three/green/diamond/empty/187.png +3 -0
- classifier/three/green/diamond/empty/216.png +3 -0
- classifier/three/green/diamond/empty/219.png +3 -0
- classifier/three/green/diamond/empty/262.png +3 -0
- classifier/three/green/diamond/empty/297.png +3 -0
- classifier/three/green/diamond/empty/307.png +3 -0
- classifier/three/green/diamond/empty/314.png +3 -0
- classifier/three/green/diamond/empty/32.png +3 -0
- classifier/three/green/diamond/empty/360.png +3 -0
- classifier/three/green/diamond/empty/367.png +3 -0
- classifier/three/green/diamond/empty/425.png +3 -0
- classifier/three/green/diamond/empty/47.png +3 -0
- classifier/three/green/diamond/empty/473.png +3 -0
- classifier/three/green/diamond/empty/582.png +3 -0
- classifier/three/green/diamond/empty/639.png +3 -0
- classifier/three/green/diamond/empty/71.png +3 -0
- classifier/three/green/diamond/empty/tytyt (115).png +3 -0
- classifier/three/green/diamond/empty/tytyt (176).png +3 -0
- classifier/three/green/diamond/full/147.png +3 -0
- classifier/three/green/diamond/full/16.png +3 -0
- classifier/three/green/diamond/full/178.png +3 -0
- classifier/three/green/diamond/full/201.png +3 -0
- classifier/three/green/diamond/full/226.png +3 -0
- classifier/three/green/diamond/full/235.png +3 -0
- classifier/three/green/diamond/full/264.png +3 -0
- classifier/three/green/diamond/full/29.png +3 -0
- classifier/three/green/diamond/full/308.png +3 -0
- classifier/three/green/diamond/full/310.png +3 -0
- classifier/three/green/diamond/full/351.png +3 -0
- classifier/three/green/diamond/full/370.png +3 -0
- classifier/three/green/diamond/full/501.png +3 -0
- classifier/three/green/diamond/full/56.png +3 -0
- classifier/three/green/diamond/full/573.png +3 -0
- classifier/three/green/diamond/full/87.png +3 -0
- classifier/three/green/diamond/full/97.png +3 -0
- classifier/three/green/diamond/full/99.png +3 -0
- classifier/three/green/diamond/full/fdfgdsfg.png +3 -0
- classifier/three/green/diamond/full/old (41).png +3 -0
- classifier/three/green/diamond/full/three_green_diamond_full.png +3 -0
- classifier/three/green/diamond/full/tytyt (204).png +3 -0
- classifier/three/green/diamond/full/tytyt (264).png +3 -0
- classifier/three/green/diamond/full/tytyt (52).png +3 -0
- classifier/three/green/diamond/full/tytyt (82).png +3 -0
- classifier/three/green/diamond/full/z (17).png +3 -0
- classifier/three/green/diamond/partial/228.png +3 -0
- detector/dataset.yaml +6 -0
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- object-detection
|
| 5 |
+
- image-classification
|
| 6 |
+
- set-game
|
| 7 |
+
- card-game
|
| 8 |
+
- computer-vision
|
| 9 |
+
- synthetic-data
|
| 10 |
+
size_categories:
|
| 11 |
+
- 1K<n<10K
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Set Solver Dataset
|
| 15 |
+
|
| 16 |
+
Training data for the [Set card game](https://www.setgame.com/) solver.
|
| 17 |
+
|
| 18 |
+
**[Live demo](https://huggingface.co/spaces/wangtianthu/set-solver)** | **[Models](https://huggingface.co/wangtianthu/set-solver-models)** | **[Source code](https://github.com/wangtian24/set-solver)**
|
| 19 |
+
|
| 20 |
+
## Dataset Structure
|
| 21 |
+
|
| 22 |
+
### Classifier — Card Attribute Classification
|
| 23 |
+
|
| 24 |
+
`classifier/{number}/{color}/{shape}/{fill}/`
|
| 25 |
+
|
| 26 |
+
1943 cropped card images organized into 81 classes (3 numbers x 3 colors x 3 shapes x 3 fills).
|
| 27 |
+
|
| 28 |
+
| Attribute | Values |
|
| 29 |
+
|-----------|--------|
|
| 30 |
+
| Number | one, two, three |
|
| 31 |
+
| Color | red, green, blue (purple) |
|
| 32 |
+
| Shape | diamond, oval, squiggle |
|
| 33 |
+
| Fill | empty, full (solid), partial (striped) |
|
| 34 |
+
|
| 35 |
+
### Detector — Card Detection (YOLO format)
|
| 36 |
+
|
| 37 |
+
`detector/images/` and `detector/labels/`
|
| 38 |
+
|
| 39 |
+
5000 synthetic board images (1280x960) with YOLO-format bounding box annotations.
|
| 40 |
+
|
| 41 |
+
- **Train**: 4000 images (`detector/images/train/`)
|
| 42 |
+
- **Val**: 1000 images (`detector/images/val/`)
|
| 43 |
+
- **Labels**: YOLO `.txt` files + rich `.json` metadata per image
|
| 44 |
+
- **Class**: single class (`card`)
|
| 45 |
+
|
| 46 |
+
The synthetic boards feature:
|
| 47 |
+
- Grid, random, overlap, and pile card layouts
|
| 48 |
+
- Varied background textures (wood, marble, gradients)
|
| 49 |
+
- Perspective transforms simulating camera angles
|
| 50 |
+
- Noise objects (buttons, coins, paper clips)
|
| 51 |
+
- 9-12 cards per board
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
### Detector training with Ultralytics
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from ultralytics import YOLO
|
| 59 |
+
|
| 60 |
+
model = YOLO("yolo11n.pt")
|
| 61 |
+
model.train(data="detector/dataset.yaml", epochs=10, imgsz=640)
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### Classifier training
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from torchvision.datasets import ImageFolder
|
| 68 |
+
from torchvision import transforms
|
| 69 |
+
|
| 70 |
+
dataset = ImageFolder("classifier/", transform=transforms.Compose([
|
| 71 |
+
transforms.Resize((224, 224)),
|
| 72 |
+
transforms.ToTensor(),
|
| 73 |
+
]))
|
| 74 |
+
```
|
classifier/three/green/diamond/empty/106.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/134.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/136.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/187.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/216.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/219.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/262.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/297.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/307.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/314.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/32.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/360.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/367.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/425.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/47.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/473.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/582.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/639.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/71.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/tytyt (115).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/empty/tytyt (176).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/147.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/16.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/178.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/201.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/226.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/235.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/264.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/29.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/308.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/310.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/351.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/370.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/501.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/56.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/573.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/87.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/97.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/99.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/fdfgdsfg.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/old (41).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/three_green_diamond_full.png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/tytyt (204).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/tytyt (264).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/tytyt (52).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/tytyt (82).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/full/z (17).png
ADDED
|
Git LFS Details
|
classifier/three/green/diamond/partial/228.png
ADDED
|
Git LFS Details
|
detector/dataset.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
path: /Users/wangtian/data/set-solver/synthetic
|
| 2 |
+
train: images/train
|
| 3 |
+
val: images/val
|
| 4 |
+
|
| 5 |
+
names:
|
| 6 |
+
0: card
|