Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDiachkov committed Oct 8, 2024
1 parent b7144b9 commit f4e4213
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/AGISwarm/text2image_ms/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def send_image(websocket: WebSocket, task_id: str, image: Image.Image, **kwargs)
)

@staticmethod
# pylint: disable=too-many-arguments
# pylint: disable=too-many-arguments, too-many-positional-arguments
def diffusion_pipeline_step_callback(
websocket: WebSocket,
task_id: str,
Expand Down
18 changes: 9 additions & 9 deletions src/AGISwarm/text2image_ms/diffusion_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ def generate(
generator = torch.Generator()
generator.manual_seed(gen_config.seed)
return self.pipeline(
prompt=gen_config.prompt,
negative_prompt=gen_config.negative_prompt,
num_inference_steps=gen_config.num_inference_steps,
guidance_scale=gen_config.guidance_scale,
generator=generator,
width=gen_config.width,
height=gen_config.height,
callback_on_step_end=callback_on_step_end,
)["images"][0]
prompt=gen_config.prompt,
negative_prompt=gen_config.negative_prompt,
num_inference_steps=gen_config.num_inference_steps,
guidance_scale=gen_config.guidance_scale,
generator=generator,
width=gen_config.width,
height=gen_config.height,
callback_on_step_end=callback_on_step_end,
)["images"][0]

def decode_latents(self, latents: torch.Tensor, output_type: str = "pil"):
"""
Expand Down

0 comments on commit f4e4213

Please sign in to comment.