File size: 1,920 Bytes
22b3d2d
 
 
 
 
 
 
 
e8c1aea
22b3d2d
 
 
e8c1aea
22b3d2d
e8c1aea
22b3d2d
e8c1aea
22b3d2d
e8c1aea
 
 
 
 
22b3d2d
e8c1aea
 
 
 
 
 
 
 
 
 
22b3d2d
e8c1aea
22b3d2d
e8c1aea
 
22b3d2d
e8c1aea
 
 
 
 
 
22b3d2d
e8c1aea
22b3d2d
e8c1aea
 
 
22b3d2d
e8c1aea
 
22b3d2d
e8c1aea
 
 
 
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
61
---
tags:
- photogen
- storymaker
- ip-adapter
- sd-xl
- character-consistency
- face-id
- insightface
license: other
---

# Photogen Models

All model weights for [Photogen](https://github.com/AshimDangol/Photogen) — a StoryMaker-based character-consistent image generation pipeline.

## Files

### StoryMaker Adapter (`mask.bin`)
The main character adapter weights, originally from [RED-AIGC/StoryMaker](https://huggingface.co/RED-AIGC/StoryMaker).

- **File:** `mask.bin` (3.32 GB)
- **Usage:** Load via `pipe.load_character_adapter()`

### InsightFace Face Encoder (`buffalo_l/`)
Face detection and recognition models for identity preservation.

| File | Size | Description |
|------|------|-------------|
| `det_10g.onnx` | 16.9 MB | Face detection model |
| `w600k_r50.onnx` | 174 MB | Face recognition model |
| `2d106det.onnx` | 5.0 MB | 2D landmark detection |
| `1k3d68.onnx` | 144 MB | 3D face landmarks |
| `genderage.onnx` | 1.3 MB | Age and gender estimation |

Extract into `models/buffalo_l/` for use with InsightFace.

### Trained Checkpoints
Custom character adapter weights trained on custom portrait data.

| Checkpoint | Size | Description |
|------------|------|-------------|
| `checkpoint-50/mask.bin` | 641 MB | Early training (50 steps) |
| `checkpoint-100/mask.bin` | 641 MB | Medium training (100 steps) |
| `checkpoint-150/mask.bin` | 641 MB | Recommended (150 steps) |
| `checkpoint-200/mask.bin` | 641 MB | Extended training (200 steps) |

## Download

```bash
# Install huggingface-cli if needed
pip install huggingface-hub

# Download everything
huggingface-cli download DeathAngel00/Photogen-checkpoints --local-dir . --local-dir-use-symlinks False

# Or download individual files
huggingface-cli download DeathAngel00/Photogen-checkpoints mask.bin --local-dir checkpoints
huggingface-cli download DeathAngel00/Photogen-checkpoints checkpoint-150/mask.bin --local-dir output_sd15
```