Skip to content

Commit

Permalink
Enable tuning for rectangle sizes on rdna2. (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet authored Jul 1, 2023
1 parent 7392b22 commit 6d286c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/stable_diffusion/src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,13 @@ def set_init_device_flags():
args.use_tuned = False

elif (
args.height != args.width and "rdna2" in args.iree_vulkan_target_triple
args.height != args.width
and "rdna2" in args.iree_vulkan_target_triple
and base_model_id
not in [
"CompVis/stable-diffusion-v1-4",
"runwayml/stable-diffusion-v1-5",
]
):
args.use_tuned = False

Expand Down

0 comments on commit 6d286c0

Please sign in to comment.