Skip to content

Commit

Permalink
fix to work
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Jun 28, 2023
1 parent 71a6d49 commit 8521ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdxl_minimal_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_timestep_embedding(x, outdim):
beta_schedule=SCHEDLER_SCHEDULE,
)

def generate_image(text, negative_text, seed=None):
def generate_image(prompt, negative_prompt, seed=None):
# 将来的にサイズ情報も変えられるようにする / Make it possible to change the size information in the future
# prepare embedding
with torch.no_grad():
Expand Down Expand Up @@ -295,7 +295,7 @@ def call_text_encoder(text):
img.save(os.path.join(args.output_dir, f"image_{timestamp}_{i:03d}.png"))

if not args.interactive:
generate_image(args.prompt, args.negative_prompt, args.seed)
generate_image(args.prompt, args.negative_prompt, seed)
else:
# loop for interactive
while True:
Expand Down

0 comments on commit 8521ab7

Please sign in to comment.