Skip to content

Typo in code in documentation docs/source/en/using-diffusers/write_own_pipeline.mdx #3159

Description

@ambisinister

Describe the bug

Docs has typo in step 6 of "Deconstruct a basic pipeline" https://github.com/huggingface/diffusers/blob/main/docs/source/en/using-diffusers/write_own_pipeline.mdx

image = Image.fromarray((image * 255)).round().astype("uint8")

should be

image = Image.fromarray((image * 255).round().astype("uint8"))

Reproduction

import numpy as np
from PIL import Image

image = Image.fromarray((np.random.rand(32,32,3) * 255)).astype("uint8")
image2 = Image.fromarray((np.random.rand(32,32,3) * 255).astype("uint8"))

Logs

No response

System Info

n/a (documentation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions