Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -362,7 +362,7 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
|
|
362 |
print('Small content processing took: ', elapsed_time, 'seconds')
|
363 |
|
364 |
st = time.time()
|
365 |
-
|
366 |
if(aspect_ratio == "portrait"):
|
367 |
width = 1024
|
368 |
height = 1536
|
@@ -372,7 +372,7 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
|
|
372 |
else:
|
373 |
width = 1024
|
374 |
height = 1024
|
375 |
-
|
376 |
image = generate_image(prompt, negative, face_emb, face_image, face_kps, image_strength, guidance_scale, face_strength, depth_control_scale, width, height, repo_name, full_path_lora, lora_scale, sdxl_loras, selected_state_index, st)
|
377 |
return (face_image, image), gr.update(visible=True)
|
378 |
|
|
|
362 |
print('Small content processing took: ', elapsed_time, 'seconds')
|
363 |
|
364 |
st = time.time()
|
365 |
+
print("aspect_ratio: ", aspect_ratio)
|
366 |
if(aspect_ratio == "portrait"):
|
367 |
width = 1024
|
368 |
height = 1536
|
|
|
372 |
else:
|
373 |
width = 1024
|
374 |
height = 1024
|
375 |
+
print(f"Width: {width}, Height: {height}")
|
376 |
image = generate_image(prompt, negative, face_emb, face_image, face_kps, image_strength, guidance_scale, face_strength, depth_control_scale, width, height, repo_name, full_path_lora, lora_scale, sdxl_loras, selected_state_index, st)
|
377 |
return (face_image, image), gr.update(visible=True)
|
378 |
|