Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -3,9 +3,9 @@ license: apache-2.0
|
|
| 3 |
---
|
| 4 |
# Templates - Meme Panda (FLUX.2-klein-base-4B)
|
| 5 |
|
| 6 |
-
This model is part of the first batch of Diffusion Templates
|
| 7 |
|
| 8 |
-
## Demo
|
| 9 |
|
| 10 |
|Prompt: A meme with a happy expression.|Prompt: A meme with a sleepy expression.|Prompt: A meme with a surprised expression.|
|
| 11 |
|-|-|-|
|
|
@@ -21,7 +21,7 @@ cd DiffSynth-Studio
|
|
| 21 |
pip install -e .
|
| 22 |
```
|
| 23 |
|
| 24 |
-
* Direct inference (requires
|
| 25 |
|
| 26 |
```python
|
| 27 |
from diffsynth.diffusion.template import TemplatePipeline
|
|
@@ -77,7 +77,6 @@ from diffsynth.diffusion.template import TemplatePipeline
|
|
| 77 |
from diffsynth.pipelines.flux2_image import Flux2ImagePipeline, ModelConfig
|
| 78 |
import torch
|
| 79 |
|
| 80 |
-
```python
|
| 81 |
vram_config = {
|
| 82 |
"offload_dtype": "disk",
|
| 83 |
"offload_device": "disk",
|
|
@@ -131,9 +130,9 @@ image = template(
|
|
| 131 |
image.save("image_PandaMeme_surprised.jpg")
|
| 132 |
```
|
| 133 |
|
| 134 |
-
##
|
| 135 |
|
| 136 |
-
|
| 137 |
|
| 138 |
```shell
|
| 139 |
modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "flux2/Template-KleinBase4B-PandaMeme/*" --local_dir ./data/diffsynth_example_dataset
|
|
|
|
| 3 |
---
|
| 4 |
# Templates - Meme Panda (FLUX.2-klein-base-4B)
|
| 5 |
|
| 6 |
+
This model is part of the first batch of open-source Diffusion Templates models from [DiffSynth-Studio](https://github.com/modelscope/DiffSynth-Studio). It's an Easter egg model capable of generating various meme-style panda head images.
|
| 7 |
|
| 8 |
+
## Demo Results
|
| 9 |
|
| 10 |
|Prompt: A meme with a happy expression.|Prompt: A meme with a sleepy expression.|Prompt: A meme with a surprised expression.|
|
| 11 |
|-|-|-|
|
|
|
|
| 21 |
pip install -e .
|
| 22 |
```
|
| 23 |
|
| 24 |
+
* Direct inference (requires 40GB GPU memory)
|
| 25 |
|
| 26 |
```python
|
| 27 |
from diffsynth.diffusion.template import TemplatePipeline
|
|
|
|
| 77 |
from diffsynth.pipelines.flux2_image import Flux2ImagePipeline, ModelConfig
|
| 78 |
import torch
|
| 79 |
|
|
|
|
| 80 |
vram_config = {
|
| 81 |
"offload_dtype": "disk",
|
| 82 |
"offload_device": "disk",
|
|
|
|
| 130 |
image.save("image_PandaMeme_surprised.jpg")
|
| 131 |
```
|
| 132 |
|
| 133 |
+
## 训练代码
|
| 134 |
|
| 135 |
+
安装 DiffSynth-Studio 后,使用以下脚本可开启训练,更多信息请参考 [DiffSynth-Studio 文档](https://diffsynth-studio-doc.readthedocs.io/zh-cn/latest/)。
|
| 136 |
|
| 137 |
```shell
|
| 138 |
modelscope download --dataset DiffSynth-Studio/diffsynth_example_dataset --include "flux2/Template-KleinBase4B-PandaMeme/*" --local_dir ./data/diffsynth_example_dataset
|