aboutsummaryrefslogtreecommitdiffstats
path: root/modules/generation_parameters_copypaste.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 07:25:35 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-08-09 07:25:35 +0000
commit386245a26427a64f364f66f6fecd03b3bccfd7f3 (patch)
tree427cd01b680c318acb964076232b064882d2f364 /modules/generation_parameters_copypaste.py
parent7d81ecbea6b558addd356d49c56891d04bc91fd4 (diff)
downloadstable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.tar.gz
stable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.tar.bz2
stable-diffusion-webui-gfx803-386245a26427a64f364f66f6fecd03b3bccfd7f3.zip
split shared.py into multiple files; should resolve all circular reference import errors related to shared.py
Diffstat (limited to 'modules/generation_parameters_copypaste.py')
-rw-r--r--modules/generation_parameters_copypaste.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py
index 5758e6f3..d932c67d 100644
--- a/modules/generation_parameters_copypaste.py
+++ b/modules/generation_parameters_copypaste.py
@@ -6,7 +6,7 @@ import re
import gradio as gr
from modules.paths import data_path
-from modules import shared, ui_tempdir, script_callbacks
+from modules import shared, ui_tempdir, script_callbacks, processing
from PIL import Image
re_param_code = r'\s*([\w ]+):\s*("(?:\\"[^,]|\\"|\\|[^\"])+"|[^,]*)(?:,|$)'
@@ -198,7 +198,6 @@ def restore_old_hires_fix_params(res):
height = int(res.get("Size-2", 512))
if firstpass_width == 0 or firstpass_height == 0:
- from modules import processing
firstpass_width, firstpass_height = processing.old_hires_fix_first_pass_dimensions(width, height)
res['Size-1'] = firstpass_width