Rodrigo_Cobo
commited on
Commit
·
fc21e39
1
Parent(s):
f78d4a4
change storage place
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def calculate_depth(model_type, img):
|
|
12 |
if not os.path.exists('temp'):
|
13 |
os.system('mkdir temp')
|
14 |
|
15 |
-
filename = "
|
16 |
|
17 |
img.save(filename, "JPEG")
|
18 |
|
@@ -46,11 +46,12 @@ def calculate_depth(model_type, img):
|
|
46 |
|
47 |
output = prediction.cpu().numpy()
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
out_im.
|
|
|
52 |
|
53 |
-
return f'
|
54 |
|
55 |
def wiggle_effect(slider):
|
56 |
|
|
|
12 |
if not os.path.exists('temp'):
|
13 |
os.system('mkdir temp')
|
14 |
|
15 |
+
filename = "Images/Input-Test/0.jpg"
|
16 |
|
17 |
img.save(filename, "JPEG")
|
18 |
|
|
|
46 |
|
47 |
output = prediction.cpu().numpy()
|
48 |
|
49 |
+
out_im = Image.fromarray(np.uint8(output*255))
|
50 |
+
#formatted = (output * 255 / np.max(output)).astype('uint8')
|
51 |
+
#out_im = Image.fromarray(formatted)
|
52 |
+
out_im.save("Images/Input-Test/0_d.jpg", "JPEG")
|
53 |
|
54 |
+
return f'Images/Input-Test/0_d.jpg'
|
55 |
|
56 |
def wiggle_effect(slider):
|
57 |
|