Skip to content

Commit

Permalink
support negative prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
okotaku committed Oct 2, 2023
1 parent 15e8913 commit 250fc9d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions diffengine/models/editors/ip_adapter/ip_adapter_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def infer(self,
The image prompt or prompts to guide the image generation.
negative_prompt (`Optional[str]`):
The prompt or prompts to guide the image generation.
Defaults to None.
height (`int`, *optional*, defaults to
`self.unet.config.sample_size * self.vae_scale_factor`):
The height in pixels of the generated image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def infer(self,
The prompt or prompts to guide the image generation.
negative_prompt (`Optional[str]`):
The prompt or prompts to guide the image generation.
Defaults to None.
height (`int`, *optional*, defaults to
`self.unet.config.sample_size * self.vae_scale_factor`):
The height in pixels of the generated image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def infer(self,
The condition image for ControlNet.
negative_prompt (`Optional[str]`):
The prompt or prompts to guide the image generation.
Defaults to None.
height (`int`, *optional*, defaults to
`self.unet.config.sample_size * self.vae_scale_factor`):
The height in pixels of the generated image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def infer(self,
The prompt or prompts to guide the image generation.
negative_prompt (`Optional[str]`):
The prompt or prompts to guide the image generation.
Defaults to None.
height (`int`, *optional*, defaults to
`self.unet.config.sample_size * self.vae_scale_factor`):
The height in pixels of the generated image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def infer(self,
The condition image for ControlNet.
negative_prompt (`Optional[str]`):
The prompt or prompts to guide the image generation.
Defaults to None.
height (`int`, *optional*, defaults to
`self.unet.config.sample_size * self.vae_scale_factor`):
The height in pixels of the generated image.
Expand Down

0 comments on commit 250fc9d

Please sign in to comment.