"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d4c7ab7bf1a00b8f416b3d20b77babac86f7fb44"
Unverified Commit 7e808e76 authored by Junjie's avatar Junjie Committed by GitHub
Browse files

[Docs] fix bugs in callback docs (#7594)

parent 7e395166
...@@ -148,9 +148,9 @@ pipeline = AutoPipelineForText2Image.from_pretrained( ...@@ -148,9 +148,9 @@ pipeline = AutoPipelineForText2Image.from_pretrained(
use_safetensors=True use_safetensors=True
).to("cuda") ).to("cuda")
image = pipe( image = pipeline(
prompt = "A croissant shaped like a cute bear." prompt="A croissant shaped like a cute bear.",
negative_prompt = "Deformed, ugly, bad anatomy" negative_prompt="Deformed, ugly, bad anatomy",
callback_on_step_end=decode_tensors, callback_on_step_end=decode_tensors,
callback_on_step_end_tensor_inputs=["latents"], callback_on_step_end_tensor_inputs=["latents"],
).images[0] ).images[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment