Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
Β·
c1110db
1
Parent(s):
a8408b6
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,14 +207,14 @@ def resize_image(image, out_size):
|
|
| 207 |
|
| 208 |
def inference(text):
|
| 209 |
texts = text
|
| 210 |
-
width =
|
| 211 |
-
height =
|
| 212 |
model = "vqgan_imagenet_f16_16384"
|
| 213 |
images_interval = 50
|
| 214 |
init_image = ""
|
| 215 |
target_images = ""
|
| 216 |
seed = 42
|
| 217 |
-
max_iterations =
|
| 218 |
|
| 219 |
model_names={"vqgan_imagenet_f16_16384": 'ImageNet 16384',"vqgan_imagenet_f16_1024":"ImageNet 1024", 'vqgan_openimages_f16_8192':'OpenImages 8912',
|
| 220 |
"wikiart_1024":"WikiArt 1024", "wikiart_16384":"WikiArt 16384", "coco":"COCO-Stuff", "faceshq":"FacesHQ", "sflckr":"S-FLCKR"}
|
|
|
|
| 207 |
|
| 208 |
def inference(text):
|
| 209 |
texts = text
|
| 210 |
+
width = 256
|
| 211 |
+
height = 256
|
| 212 |
model = "vqgan_imagenet_f16_16384"
|
| 213 |
images_interval = 50
|
| 214 |
init_image = ""
|
| 215 |
target_images = ""
|
| 216 |
seed = 42
|
| 217 |
+
max_iterations = 100
|
| 218 |
|
| 219 |
model_names={"vqgan_imagenet_f16_16384": 'ImageNet 16384',"vqgan_imagenet_f16_1024":"ImageNet 1024", 'vqgan_openimages_f16_8192':'OpenImages 8912',
|
| 220 |
"wikiart_1024":"WikiArt 1024", "wikiart_16384":"WikiArt 16384", "coco":"COCO-Stuff", "faceshq":"FacesHQ", "sflckr":"S-FLCKR"}
|