Skip to content

Commit

Permalink
[SDXL] finish
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten committed Oct 3, 2023
1 parent 500cb89 commit 163494f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/research_projects/sdxl_flax/sdxl_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ def generate(
neg_prompt = "cartoon, illustration, animation. face. male, female"
images = generate(prompt, neg_prompt)
print(f"Inference in {time.time() - start}")

for i, image in enumerate(images):
image.save(f"castle_{i}.png")
3 changes: 3 additions & 0 deletions examples/research_projects/sdxl_flax/sdxl_single_aot.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ def generate(prompt, negative_prompt, seed=default_seed, guidance_scale=default_
neg_prompt = "cartoon, illustration, animation. face. male, female"
images = generate(prompt, neg_prompt)
print(f"Inference in {time.time() - start}")

for i, image in enumerate(images):
image.save(f"castle_{i}.png")

0 comments on commit 163494f

Please sign in to comment.