Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
b966107
1
Parent(s):
12aa581
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def can_expand(source_width, source_height, target_width, target_height, alignme
|
|
54 |
return False
|
55 |
return True
|
56 |
|
57 |
-
@spaces.GPU
|
58 |
def infer(image, width=1024, height=1024, overlap_width=18, num_inference_steps=8, resize_option="custom", custom_resize_size=768, prompt_input=None, alignment="Middle"):
|
59 |
source = image
|
60 |
target_size = (width, height)
|
@@ -221,6 +221,7 @@ def create_video_from_images(image_list, fps=4):
|
|
221 |
video.release()
|
222 |
return video_path
|
223 |
|
|
|
224 |
def loop_outpainting(image, width=1024, height=1024, overlap_width=18, num_inference_steps=8, resize_option="custom", custom_resize_size=768, prompt_input=None, alignment="Middle", num_iterations=18, fps=6, progress=gr.Progress()):
|
225 |
image_list = [image]
|
226 |
current_image = image
|
|
|
54 |
return False
|
55 |
return True
|
56 |
|
57 |
+
@spaces.GPU
|
58 |
def infer(image, width=1024, height=1024, overlap_width=18, num_inference_steps=8, resize_option="custom", custom_resize_size=768, prompt_input=None, alignment="Middle"):
|
59 |
source = image
|
60 |
target_size = (width, height)
|
|
|
221 |
video.release()
|
222 |
return video_path
|
223 |
|
224 |
+
@spaces.GPU
|
225 |
def loop_outpainting(image, width=1024, height=1024, overlap_width=18, num_inference_steps=8, resize_option="custom", custom_resize_size=768, prompt_input=None, alignment="Middle", num_iterations=18, fps=6, progress=gr.Progress()):
|
226 |
image_list = [image]
|
227 |
current_image = image
|