Skip to content

Commit

Permalink
Exclude non-square sizes from use_tuned on rdna2 (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet authored Jun 21, 2023
1 parent d61b664 commit 1a8e202
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/stable_diffusion/src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ def set_init_device_flags():
):
args.use_tuned = False

elif (
args.height != args.width and "rdna2" in args.iree_vulkan_target_triple
):
args.use_tuned = False

elif base_model_id not in [
"Linaqruf/anything-v3.0",
"dreamlike-art/dreamlike-diffusion-1.0",
Expand Down

0 comments on commit 1a8e202

Please sign in to comment.