Skip to content

Commit

Permalink
pr fix reeeee 🐸
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky committed Aug 25, 2022
1 parent 72e58a3 commit 92661ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,7 @@ def check_prompt_length(prompt, comments):
comments.append(f"Warning: too many input tokens; some ({len(overflowing_words)}) have been truncated:\n{overflowing_text}\n")


def process_images(outpath, func_init, func_sample, prompt, seed, sampler_name, skip_grid, skip_save, batch_size, n_iter, steps, cfg_scale, width, height, prompt_matrix,
, fp, do_not_save_grid=False, normalize_prompt_weights=True, init_img=None, init_mask=None, keep_mask=True):
def process_images(outpath, func_init, func_sample, prompt, seed, sampler_name, skip_grid, skip_save, batch_size, n_iter, steps, cfg_scale, width, height, prompt_matrix, fp, do_not_save_grid=False, normalize_prompt_weights=True, init_img=None, init_mask=None, keep_mask=True):
"""this is the main loop that both txt2img and img2img use; it calls func_init once inside all the scopes and func_sample once per batch"""
assert prompt is not None
torch_gc()
Expand Down

0 comments on commit 92661ba

Please sign in to comment.