Spaces:
Runtime error
Runtime error
print debug message
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ def process(
|
|
137 |
response.raise_for_status()
|
138 |
image = PIL.Image.open(BytesIO(response.content))
|
139 |
print("fetch image success")
|
140 |
-
|
141 |
if mask_url:
|
142 |
print("start to fetch mask from url", mask_url)
|
143 |
response = requests.get(mask_url)
|
@@ -159,6 +159,7 @@ def process(
|
|
159 |
resized_mask = mask.resize((width, height), Image.LANCZOS)
|
160 |
|
161 |
with calculateDuration("load lora"):
|
|
|
162 |
pipe.load_lora_weights(lora_path, weight_name=lora_weights)
|
163 |
|
164 |
if randomize_seed_checkbox:
|
@@ -166,6 +167,7 @@ def process(
|
|
166 |
generator = torch.Generator().manual_seed(seed_slicer)
|
167 |
|
168 |
with calculateDuration("run pipe"):
|
|
|
169 |
result = pipe(
|
170 |
prompt=f"{input_text} {trigger_word}",
|
171 |
image=resized_image,
|
|
|
137 |
response.raise_for_status()
|
138 |
image = PIL.Image.open(BytesIO(response.content))
|
139 |
print("fetch image success")
|
140 |
+
|
141 |
if mask_url:
|
142 |
print("start to fetch mask from url", mask_url)
|
143 |
response = requests.get(mask_url)
|
|
|
159 |
resized_mask = mask.resize((width, height), Image.LANCZOS)
|
160 |
|
161 |
with calculateDuration("load lora"):
|
162 |
+
print(lora_path, lora_weights)
|
163 |
pipe.load_lora_weights(lora_path, weight_name=lora_weights)
|
164 |
|
165 |
if randomize_seed_checkbox:
|
|
|
167 |
generator = torch.Generator().manual_seed(seed_slicer)
|
168 |
|
169 |
with calculateDuration("run pipe"):
|
170 |
+
print(input_text, width, height, strength_slider, num_inference_steps_slider, lora_scale)
|
171 |
result = pipe(
|
172 |
prompt=f"{input_text} {trigger_word}",
|
173 |
image=resized_image,
|