Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- photogen
|
| 4 |
+
- storymaker
|
| 5 |
+
- ip-adapter
|
| 6 |
+
- sd-xl
|
| 7 |
+
- character-consistency
|
| 8 |
+
- face-id
|
| 9 |
+
license: other
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Photogen Checkpoints
|
| 13 |
+
|
| 14 |
+
Trained character adapter weights for [Photogen](https://github.com/AshimDangol/Photogen) (StoryMaker-based character-consistent image generation).
|
| 15 |
+
|
| 16 |
+
## Checkpoints
|
| 17 |
+
|
| 18 |
+
| Step | File | Description |
|
| 19 |
+
|------|------|-------------|
|
| 20 |
+
| 50 | checkpoint-50/mask.bin | Early checkpoint (50 steps) |
|
| 21 |
+
| 100 | checkpoint-100/mask.bin | Medium checkpoint (100 steps) |
|
| 22 |
+
| 150 | checkpoint-150/mask.bin | Recommended checkpoint (150 steps) |
|
| 23 |
+
| 200 | checkpoint-200/mask.bin | Extended checkpoint (200 steps) |
|
| 24 |
+
|
| 25 |
+
## Usage
|
| 26 |
+
|
| 27 |
+
Download to your project root and use with the Photogen pipeline:
|
| 28 |
+
|
| 29 |
+
`ash
|
| 30 |
+
huggingface-cli download DeathAngel00/Photogen-checkpoints checkpoint-150/mask.bin --local-dir checkpoints --local-dir-use-symlinks False
|
| 31 |
+
`
|
| 32 |
+
|
| 33 |
+
Then in code:
|
| 34 |
+
|
| 35 |
+
`python
|
| 36 |
+
from pipeline_sdxl_character import StableDiffusionXLCharacterPipeline
|
| 37 |
+
|
| 38 |
+
pipe = StableDiffusionXLCharacterPipeline.from_pretrained('huaquan/YamerMIX_v11', torch_dtype=torch.float16)
|
| 39 |
+
pipe.load_character_adapter('laion/CLIP-ViT-H-14-laion2B-s32B-b79K', 'checkpoints/checkpoint-150/mask.bin', scale=0.8, lora_scale=0.8)
|
| 40 |
+
`
|
| 41 |
+
|
| 42 |
+
## License
|
| 43 |
+
|
| 44 |
+
Same as the original StoryMaker project.
|