Shadow puppets YOLO11
Object detectors for the photographs of Javanese shadow puppets (wayang kulit) in the Yale collection. Each photograph shows one puppet on grey card, with a 92 cm yardstick standing up one side and a 61 cm ruler along the bottom. The models find the puppet and the two rulers, so the puppet's boxes can be converted to centimetres using the rulers.
Classes
| id | class | what it is |
|---|---|---|
| 0 | body-without-rods | the puppet's leather body without the rods and handle |
| 1 | horizontal-ruler | the ruler lying along the bottom (61 cm) |
| 2 | puppet-with-rods | the whole puppet including its rods and handle |
| 3 | shoulder | the band across the puppet's shoulders |
| 4 | vertical-ruler | the yardstick standing upright (92 cm) |
Files
Five sizes of the same detector, each the best checkpoint of its run:
| file | base | precision | recall | mAP50 | mAP50-95 |
|---|---|---|---|---|---|
shadow-puppets-yolo11n.pt | yolo11n | 0.947 | 0.948 | 0.952 | 0.673 |
shadow-puppets-yolo11s.pt | yolo11s | 0.954 | 0.941 | 0.962 | 0.700 |
shadow-puppets-yolo11m.pt | yolo11m | 0.949 | 0.956 | 0.959 | 0.692 |
shadow-puppets-yolo11l.pt | yolo11l | 0.940 | 0.950 | 0.957 | 0.700 |
shadow-puppets-yolo11x.pt | yolo11x | 0.960 | 0.959 | 0.966 | 0.670 |
The metrics are on the validation split at each run's best epoch. runs/<model>/ holds each run's results.csv, args.yaml, loss curves and normalised confusion matrix.
Training
- Data: Roboflow
yale-ai/yale-shadow-puppetsversion 10 (747 images, CC BY 4.0), exported in YOLO format: https://universe.roboflow.com/yale-ai/yale-shadow-puppets/dataset/10 - Ultralytics YOLO11, starting from the COCO-pretrained weights; 100 epochs, image size 640, batch 16, one H200 GPU.
Use
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
model = YOLO(hf_hub_download("yale-cultural-heritage/shadow-puppets-yolov11", "shadow-puppets-yolo11m.pt"))
for box in model("puppet.jpg")[0].boxes:
print(model.names[int(box.cls)], float(box.conf), box.xyxy[0].tolist())
In a chai-engine workflow, YoloSegmenter takes the model as hf://yale-cultural-heritage/shadow-puppets-yolov11/shadow-puppets-yolo11m.pt, and ScaleMeasurer converts the boxes to centimetres using the rulers ({"vertical-ruler": {"height": 92}, "horizontal-ruler": {"width": 61}}). See examples/workflow-shadow-puppets.json.
Limitations
The models are trained on one photography setup: a single puppet on grey card with the two rulers and a whiteboard label. A size is only as good as the ruler boxes; a ruler box that stops short of the ruler's ends throws off every measurement in that photograph. Comparing the scale from the horizontal ruler with the scale from the vertical one shows when that has happened.