Unverified Commit 7d0ba592 authored by Krishna Penukonda's avatar Krishna Penukonda Committed by GitHub
Browse files

Fix type annotations on StableDiffusionPipeline.__call__ (#682)

Fixed type annotations on StableDiffusionPipeline::__call__
parent 249b36cc
......@@ -113,11 +113,11 @@ class StableDiffusionPipeline(DiffusionPipeline):
def __call__(
self,
prompt: Union[str, List[str]],
height: Optional[int] = 512,
width: Optional[int] = 512,
num_inference_steps: Optional[int] = 50,
guidance_scale: Optional[float] = 7.5,
eta: Optional[float] = 0.0,
height: int = 512,
width: int = 512,
num_inference_steps: int = 50,
guidance_scale: float = 7.5,
eta: float = 0.0,
generator: Optional[torch.Generator] = None,
latents: Optional[torch.FloatTensor] = None,
output_type: Optional[str] = "pil",
......
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