Spaces:
Runtime error
Runtime error
max
commited on
Commit
•
44ac782
1
Parent(s):
0f09c7c
<=1024
Browse files
app.py
CHANGED
@@ -303,7 +303,7 @@ class Predictor:
|
|
303 |
img = i
|
304 |
# img.save('0.png')
|
305 |
assert img.width == img.height
|
306 |
-
assert img.width > 512 and img.width
|
307 |
|
308 |
def tile_coords(image, n=2, tile_size=512):
|
309 |
assert image.width == image.height
|
@@ -403,7 +403,7 @@ with gr.Blocks() as demo:
|
|
403 |
border = gc.Slider(1, 50, 0, step=1, label='border to crop from the image before outpainting')
|
404 |
seed = gc.Slider(1, 65536, 10, step=1, label='seed')
|
405 |
size = gc.Slider(0, 1, .5, step=0.01,label='scale of the image before outpainting')
|
406 |
-
tiled = gc.Checkbox(label='tiled: run the network with 4 tiles of size 512x512 . only usable if output size >512 and
|
407 |
|
408 |
model = gc.Dropdown(
|
409 |
choices=['places2',
|
|
|
303 |
img = i
|
304 |
# img.save('0.png')
|
305 |
assert img.width == img.height
|
306 |
+
assert img.width > 512 and img.width <= 512*2
|
307 |
|
308 |
def tile_coords(image, n=2, tile_size=512):
|
309 |
assert image.width == image.height
|
|
|
403 |
border = gc.Slider(1, 50, 0, step=1, label='border to crop from the image before outpainting')
|
404 |
seed = gc.Slider(1, 65536, 10, step=1, label='seed')
|
405 |
size = gc.Slider(0, 1, .5, step=0.01,label='scale of the image before outpainting')
|
406 |
+
tiled = gc.Checkbox(label='tiled: run the network with 4 tiles of size 512x512 . only usable if output size >512 and <=1024', value=False)
|
407 |
|
408 |
model = gc.Dropdown(
|
409 |
choices=['places2',
|