alfredplpl commited on
Commit
18db6b4
1 Parent(s): f91c54b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -16,3 +16,22 @@ This is an experimental model. I full-finetune SD 3.5 Large by Quality Tuning on
16
  - ComfyUI
17
  1. Download the [model](sd3_5_large_modern_anime_full.safetensors).
18
  2. Enjoy! (trigger word: modern anime style, )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  - ComfyUI
17
  1. Download the [model](sd3_5_large_modern_anime_full.safetensors).
18
  2. Enjoy! (trigger word: modern anime style, )
19
+ - diffusers
20
+ 1. Run the code:
21
+ ```python
22
+ import torch
23
+ from diffusers import SD3Transformer2DModel, StableDiffusion3Pipeline
24
+
25
+ transformer = SD3Transformer2DModel.from_single_file(
26
+ "https://huggingface.co/alfredplpl/sd3-5-large-modern-anime-full/blob/main/sd3_5_large_modern_anime_full.safetensors",
27
+ torch_dtype=torch.bfloat16,
28
+ )
29
+ pipe = StableDiffusion3Pipeline.from_pretrained(
30
+ "stabilityai/stable-diffusion-3.5-large",
31
+ transformer=transformer,
32
+ torch_dtype=torch.bfloat16,
33
+ )
34
+ pipe.enable_model_cpu_offload()
35
+ image = pipe("a cat holding a sign that says hello world").images[0]
36
+ image.save("sd35.png")
37
+ ```