Skip to content

Commit

Permalink
sdxl for other benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakpaul committed Dec 5, 2023
1 parent 63aee79 commit 9a9d5ea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions benchmarks/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ def main():
command += " --run_compile"
run_command(command.split())

elif file in ["benchmark_sd_img.py", "benchmark_sd_inpainting.py"]:
sdxl_ckpt = "stabilityai/stable-diffusion-xl-base-1.0"
command = f"python {file} --ckpt {sdxl_ckpt}"
run_command(command.split())

command += " --run_compile"
run_command(command.split())

elif file in ["benchmark_controlnet.py", "benchmark_t2i_adapter.py"]:
sdxl_ckpt = (
"diffusers/controlnet-canny-sdxl-1.0"
if "controlnet" == file
else "TencentARC/t2i-adapter-canny-sdxl-1.0"
)
command = f"python {file} --ckpt {sdxl_ckpt}"
run_command(command.split())

command += " --run_compile"
run_command(command.split())


if __name__ == "__main__":
main()

0 comments on commit 9a9d5ea

Please sign in to comment.