Skip to content

Commit

Permalink
fix #107 (upstream change)
Browse files Browse the repository at this point in the history
  • Loading branch information
Interpause committed Jan 31, 2023
1 parent 4fbd172 commit 4b8e719
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def f_txt2img(req: Txt2ImgRequest):
0, # hr_second_pass_steps: 0 uses same num of steps as generation to refine details
req.orig_width, # hr_resize_x
req.orig_height, # hr_resize_y
"", # override_settings_texts (unsupported)
*args,
)
images = output[0]
Expand Down Expand Up @@ -276,7 +277,9 @@ def f_img2img(req: Img2ImgRequest):
0, # req.inpaint_full_res_padding, # inpaint_full_res_padding
req.invert_mask, # inpainting_mask_invert
"", # img2img_batch_input_dir (unspported)
"", # img2img_batch_output_dir (unspported)
"", # img2img_batch_output_dir (unsupported)
"", # img2img_batch_inpaint_mask_dir (unsupported)
"", # override_settings_texts (unsupported)
*args,
)
images = output[0]
Expand Down
10 changes: 7 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from launch import git, run

REPO_LOCATION = Path(__file__).parent
LAST_BREAKING_COMMIT_TIME = 1674039585 # 26fd444811b6ce45845023a6d4a8bedcba53b60d
# git show -s --format=%ct <commit_hash>
LAST_BREAKING_COMMIT_TIME = 1675035626
LAST_BREAKING_COMMIT = "c81b52ffbd6252842b3473a7aa8eb7ffc88ee7d1"
auto_update = os.environ.get("AUTO_SD_PAINT_EXT_AUTO_UPDATE", "False").lower() in {
"true",
"yes",
Expand All @@ -20,9 +22,11 @@

auto_commit_hash = get_commit_hash()
try:
cur_commit_time = run(f'{git} show -s --format=%ct {auto_commit_hash}')
cur_commit_time = run(f"{git} show -s --format=%ct {auto_commit_hash}")
if int(cur_commit_time) < LAST_BREAKING_COMMIT_TIME:
print(f"[auto-sd-paint-ext] Current A1111 commit is OLDER than the latest breaking changes! Extension might fail to function as expected!!!")
print(
f"[auto-sd-paint-ext] Current A1111 commit is OLDER than last breaking commit ({LAST_BREAKING_COMMIT})! Extension might fail to function as expected!!!"
)
except Exception:
pass

Expand Down

0 comments on commit 4b8e719

Please sign in to comment.