Skip to content

Commit

Permalink
Merge pull request #17 from lllyasviel/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
lllyasviel authored Jan 27, 2024
2 parents aec5053 + f9d8023 commit 5a0dce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/interrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

Category = namedtuple("Category", ["name", "topn", "items"])

re_topn = re.compile(r"\.top(\d+)\.")
re_topn = re.compile(r"\.top(\d+)$")

def category_types():
return [f.stem for f in Path(shared.interrogator.content_dir).glob('*.txt')]
Expand Down
4 changes: 2 additions & 2 deletions modules/txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
assert len(gallery) > 0, 'No image to upscale'
assert 0 <= gallery_index < len(gallery), f'Bad image index: {gallery_index}'

p = txt2img_create_processing(id_task, request, *args)
p.enable_hr = True
p = txt2img_create_processing(id_task, request, *args, force_enable_hr=True)
p.batch_size = 1
p.n_iter = 1
# txt2img_upscale attribute that signifies this is called by txt2img_upscale
p.txt2img_upscale = True

geninfo = json.loads(generation_info)
Expand Down

0 comments on commit 5a0dce7

Please sign in to comment.