File size: 1,825 Bytes
d1f8fab
 
 
 
 
 
934245f
d1f8fab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e918622
d1f8fab
 
e918622
d1f8fab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: Anime Artist Style Embedder
emoji: 🎨
colorFrom: red
colorTo: yellow
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
license: other
---

# Anime Artist Style Embedder

This Space runs artist-style retrieval with the included DINOv3-based model and base prototype bank.

## Runtime Assets

- `artifacts/style_training_dinov3/best.pt`
- `artifacts/style_training_dinov3/artist_prototypes.pt`
- `artifacts/pretrained/dinov3/dinov3_vits16_pretrain_lvd1689m-08c60483.pth`
- `third_party/dinov3/`
- `yolov5_anime/` with the compact `weights/yolov5s_anime.pt`
- `anime-eyes-cascade.xml`

The larger `yolov5x_anime.pt` is intentionally not bundled to keep the Space repository under the 1GB upload limit. The bundled `yolov5s_anime.pt` is used by default. To use `x` instead, upload it to an attached Storage Bucket mounted at `/data`, for example:

```text
/data/assets/yolov5x_anime.pt
```

That is the default path used by this Space. To use another path, set:

```bash
YOLO_WEIGHTS=/data/assets/yolov5x_anime.pt
```

The same override pattern is available for:

- `ARTIST_STYLE_CHECKPOINT`
- `ARTIST_PROTOTYPES`
- `DINOV3_ROOT`
- `DINOV3_WEIGHTS`
- `YOLO_ANIME_ROOT`
- `YOLO_WEIGHTS`
- `EYE_CASCADE`

## Added Artists

Base artists are read-only. Artists added from the Space UI are stored separately under:

- `/data/custom_store` when persistent storage is mounted
- `custom_store/` otherwise

For durable user-added artists on Hugging Face Spaces, enable persistent storage or set up an external Dataset-backed sync before public use.

## Licenses

This Space includes DINOv3 materials under the DINOv3 License. The optional auto-crop pipeline uses `yolov5_anime` and Haar Cascade Anime Eye Detector materials, both under GPL-3.0. See the upstream license files in the bundled third-party folders.