alfredplpl
commited on
Commit
•
447b65f
1
Parent(s):
8809f74
Update README.md
Browse files
README.md
CHANGED
@@ -27,15 +27,15 @@ pip install optimum-quanto
|
|
27 |
# Reference 2 by https://huggingface.co/twodgirl
|
28 |
# Reference 3: https://huggingface.co/p1atdev/FLUX.1-schnell-t5-xxl-quanto
|
29 |
|
|
|
|
|
|
|
30 |
import torch
|
31 |
from diffusers import FluxPipeline, FluxTransformer2DModel
|
32 |
from optimum.quanto import QuantizedDiffusersModel, QuantizedTransformersModel
|
33 |
from transformers import T5EncoderModel
|
34 |
from huggingface_hub import snapshot_download
|
35 |
|
36 |
-
prompt = "modern anime style, A close-up portrait of a young girl with green hair. Her hair is vibrant and shoulder-length, framing her face softly. She has large, expressive eyes that are slightly tilted upward, with a gentle and calm expression. Her facial features are delicate, with a small nose and soft lips. The background is simple, focusing attention on her face, with soft lighting that highlights her features. The overall style of the illustration is warm and inviting, with a soft color palette and a slightly dreamy atmosphere."
|
37 |
-
enable_model_cpu_offload=True
|
38 |
-
|
39 |
snapshot_download(repo_id="alfredplpl/flux.1-dev-modern-anime-fp8",local_dir="./anime_fp8")
|
40 |
|
41 |
class QuantizedT5EncoderModel(QuantizedTransformersModel):
|
|
|
27 |
# Reference 2 by https://huggingface.co/twodgirl
|
28 |
# Reference 3: https://huggingface.co/p1atdev/FLUX.1-schnell-t5-xxl-quanto
|
29 |
|
30 |
+
prompt = "modern anime style, A close-up portrait of a young girl with green hair. Her hair is vibrant and shoulder-length, framing her face softly. She has large, expressive eyes that are slightly tilted upward, with a gentle and calm expression. Her facial features are delicate, with a small nose and soft lips. The background is simple, focusing attention on her face, with soft lighting that highlights her features. The overall style of the illustration is warm and inviting, with a soft color palette and a slightly dreamy atmosphere."
|
31 |
+
enable_model_cpu_offload=True
|
32 |
+
|
33 |
import torch
|
34 |
from diffusers import FluxPipeline, FluxTransformer2DModel
|
35 |
from optimum.quanto import QuantizedDiffusersModel, QuantizedTransformersModel
|
36 |
from transformers import T5EncoderModel
|
37 |
from huggingface_hub import snapshot_download
|
38 |
|
|
|
|
|
|
|
39 |
snapshot_download(repo_id="alfredplpl/flux.1-dev-modern-anime-fp8",local_dir="./anime_fp8")
|
40 |
|
41 |
class QuantizedT5EncoderModel(QuantizedTransformersModel):
|