mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix to work
This commit is contained in:
@@ -169,7 +169,7 @@ if __name__ == "__main__":
|
|||||||
beta_schedule=SCHEDLER_SCHEDULE,
|
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
|
# 将来的にサイズ情報も変えられるようにする / Make it possible to change the size information in the future
|
||||||
# prepare embedding
|
# prepare embedding
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
@@ -295,7 +295,7 @@ if __name__ == "__main__":
|
|||||||
img.save(os.path.join(args.output_dir, f"image_{timestamp}_{i:03d}.png"))
|
img.save(os.path.join(args.output_dir, f"image_{timestamp}_{i:03d}.png"))
|
||||||
|
|
||||||
if not args.interactive:
|
if not args.interactive:
|
||||||
generate_image(args.prompt, args.negative_prompt, args.seed)
|
generate_image(args.prompt, args.negative_prompt, seed)
|
||||||
else:
|
else:
|
||||||
# loop for interactive
|
# loop for interactive
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user