@@ -77,19 +77,19 @@ pipeline = DiffusionPipeline.from_pretrained(
77
77
" runwayml/stable-diffusion-v1-5" , torch_dtype = torch.float16, safety_checker = None
78
78
).to(" cuda" )
79
79
pipeline.enable_freeu(s1 = 0.9 , s2 = 0.2 , b1 = 1.5 , b2 = 1.6 )
80
- generator = torch.Generator(device = " cpu" ).manual_seed(67 )
80
+ generator = torch.Generator(device = " cpu" ).manual_seed(33 )
81
81
prompt = " "
82
82
image = pipeline(prompt, generator = generator).images[0 ]
83
83
image
84
84
```
85
85
86
86
<div class =" flex gap-4 " >
87
87
<div >
88
- <img class="rounded-xl" src=""/>
88
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdv15-no-freeu.png "/>
89
89
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU disabled</figcaption>
90
90
</div >
91
91
<div >
92
- <img class="rounded-xl" src=""/>
92
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdv15-freeu.png "/>
93
93
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU enabled</figcaption>
94
94
</div >
95
95
</div >
@@ -105,19 +105,19 @@ pipeline = DiffusionPipeline.from_pretrained(
105
105
" stabilityai/stable-diffusion-2-1" , torch_dtype = torch.float16, safety_checker = None
106
106
).to(" cuda" )
107
107
pipeline.enable_freeu(s1 = 0.9 , s2 = 0.2 , b1 = 1.4 , b2 = 1.6 )
108
- generator = torch.Generator(device = " cpu" ).manual_seed(67 )
109
- prompt = " "
108
+ generator = torch.Generator(device = " cpu" ).manual_seed(80 )
109
+ prompt = " A squirrel eating a burger "
110
110
image = pipeline(prompt, generator = generator).images[0 ]
111
111
image
112
112
```
113
113
114
114
<div class =" flex gap-4 " >
115
115
<div >
116
- <img class="rounded-xl" src=""/>
116
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdv21-no-freeu.png "/>
117
117
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU disabled</figcaption>
118
118
</div >
119
119
<div >
120
- <img class="rounded-xl" src=""/>
120
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdv21-freeu.png "/>
121
121
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU enabled</figcaption>
122
122
</div >
123
123
</div >
@@ -133,19 +133,19 @@ pipeline = DiffusionPipeline.from_pretrained(
133
133
" stabilityai/stable-diffusion-xl-base-1.0" , torch_dtype = torch.float16,
134
134
).to(" cuda" )
135
135
pipeline.enable_freeu(s1 = 0.9 , s2 = 0.2 , b1 = 1.3 , b2 = 1.4 )
136
- generator = torch.Generator(device = " cpu" ).manual_seed(67 )
137
- prompt = " "
136
+ generator = torch.Generator(device = " cpu" ).manual_seed(13 )
137
+ prompt = " A squirrel eating a burger "
138
138
image = pipeline(prompt, generator = generator).images[0 ]
139
139
image
140
140
```
141
141
142
142
<div class =" flex gap-4 " >
143
143
<div >
144
- <img class="rounded-xl" src=""/>
144
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdxl-no-freeu.png "/>
145
145
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU disabled</figcaption>
146
146
</div >
147
147
<div >
148
- <img class="rounded-xl" src=""/>
148
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/sdxl-freeu.png "/>
149
149
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU enabled</figcaption>
150
150
</div >
151
151
</div >
@@ -159,19 +159,23 @@ from diffusers import DiffusionPipeline
159
159
from diffusers.utils import export_to_video
160
160
161
161
pipeline = DiffusionPipeline.from_pretrained(
162
- " cerspense/zeroscope_v2_576w " , torch_dtype = torch.float16
162
+ " damo-vilab/text-to-video-ms-1.7b " , torch_dtype = torch.float16
163
163
).to(" cuda" )
164
164
# values come from https://github.com/lyn-rgb/FreeU_Diffusers#video-pipelines
165
165
pipeline.enable_freeu(b1 = 1.2 , b2 = 1.4 , s1 = 0.9 , s2 = 0.2 )
166
+ prompt = " Confident teddy bear surfer rides the wave in the tropics"
167
+ generator = torch.Generator(device = " cpu" ).manual_seed(47 )
168
+ video_frames = pipeline(prompt, generator = generator).frames[0 ]
169
+ export_to_video(video_frames, " teddy_bear.mp4" , fps = 10 )
166
170
```
167
171
168
172
<div class =" flex gap-4 " >
169
173
<div >
170
- <img class="rounded-xl" src=""/>
174
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/video-no-freeu.gif "/>
171
175
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU disabled</figcaption>
172
176
</div >
173
177
<div >
174
- <img class="rounded-xl" src=""/>
178
+ <img class="rounded-xl" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/video-freeu.gif "/>
175
179
<figcaption class="mt-2 text-center text-sm text-gray-500">FreeU enabled</figcaption>
176
180
</div >
177
181
</div >
0 commit comments