Rodrigo_Cobo
commited on
Commit
·
360dad8
1
Parent(s):
8f32fb8
fix type issue
Browse files
app.py
CHANGED
|
@@ -55,14 +55,15 @@ def calculate_depth(model_type, img):
|
|
| 55 |
|
| 56 |
def wiggle_effect(slider):
|
| 57 |
|
| 58 |
-
dim = 256
|
| 59 |
-
c_images = 1
|
|
|
|
| 60 |
|
| 61 |
subprocess.run(["python", "main.py", "--gan_type", 'WiggleGAN', "--expandGen", "4", "--expandDis", "4", "--batch_size", c_images, "--cIm", c_images,
|
| 62 |
-
"--visdom", "false", "--wiggleDepth",
|
| 63 |
])
|
| 64 |
subprocess.run(["python", "WiggleResults\split.py", "--dim", dim])
|
| 65 |
-
|
| 66 |
return [f'WiggleResults/result.png',f'WiggleResults/result_0.gif']
|
| 67 |
|
| 68 |
|
|
|
|
| 55 |
|
| 56 |
def wiggle_effect(slider):
|
| 57 |
|
| 58 |
+
dim = '256'
|
| 59 |
+
c_images = '1'
|
| 60 |
+
print(type(slider))
|
| 61 |
|
| 62 |
subprocess.run(["python", "main.py", "--gan_type", 'WiggleGAN', "--expandGen", "4", "--expandDis", "4", "--batch_size", c_images, "--cIm", c_images,
|
| 63 |
+
"--visdom", "false", "--wiggleDepth", "1", "--seedLoad", '31219_110', "--gpu_mode", "false", "--imageDim", dim, "--name_wiggle", "result"
|
| 64 |
])
|
| 65 |
subprocess.run(["python", "WiggleResults\split.py", "--dim", dim])
|
| 66 |
+
|
| 67 |
return [f'WiggleResults/result.png',f'WiggleResults/result_0.gif']
|
| 68 |
|
| 69 |
|