Skip to content

Commit 3a0d3da

Browse files
authored
Fix a typo: bfloa16 -> bfloat16 (huggingface#2243)
1 parent 22c1ba5 commit 3a0d3da

28 files changed

+28
-28
lines changed

examples/community/composable_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def decode_latents(self, latents):
340340
latents = 1 / 0.18215 * latents
341341
image = self.vae.decode(latents).sample
342342
image = (image / 2 + 0.5).clamp(0, 1)
343-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
343+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
344344
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
345345
return image
346346

examples/community/imagic_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def __call__(
479479

480480
image = (image / 2 + 0.5).clamp(0, 1)
481481

482-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
482+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
483483
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
484484

485485
if self.safety_checker is not None:

examples/community/interpolate_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def __call__(
379379

380380
image = (image / 2 + 0.5).clamp(0, 1)
381381

382-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
382+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
383383
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
384384

385385
if self.safety_checker is not None:

examples/community/lpw_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def decode_latents(self, latents):
600600
latents = 1 / 0.18215 * latents
601601
image = self.vae.decode(latents).sample
602602
image = (image / 2 + 0.5).clamp(0, 1)
603-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
603+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
604604
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
605605
return image
606606

examples/community/multilingual_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def __call__(
414414

415415
image = (image / 2 + 0.5).clamp(0, 1)
416416

417-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
417+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
418418
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
419419

420420
if self.safety_checker is not None:

examples/community/sd_text2img_k_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def decode_latents(self, latents):
300300
latents = 1 / 0.18215 * latents
301301
image = self.vae.decode(latents).sample
302302
image = (image / 2 + 0.5).clamp(0, 1)
303-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
303+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
304304
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
305305
return image
306306

examples/community/seed_resize_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def __call__(
344344

345345
image = (image / 2 + 0.5).clamp(0, 1)
346346

347-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
347+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
348348
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
349349

350350
if self.safety_checker is not None:

examples/community/speech_to_image_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def __call__(
249249

250250
image = (image / 2 + 0.5).clamp(0, 1)
251251

252-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
252+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
253253
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
254254

255255
if output_type == "pil":

examples/community/wildcard_stable_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def __call__(
396396

397397
image = (image / 2 + 0.5).clamp(0, 1)
398398

399-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
399+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
400400
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
401401

402402
if self.safety_checker is not None:

src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def decode_latents(self, latents):
372372
latents = 1 / self.vae.config.scaling_factor * latents
373373
image = self.vae.decode(latents).sample
374374
image = (image / 2 + 0.5).clamp(0, 1)
375-
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloa16
375+
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
376376
image = image.cpu().permute(0, 2, 3, 1).float().numpy()
377377
return image
378378

0 commit comments

Comments
 (0)