Spaces:
Running
Running
Testing with Deepgaze
Browse files
app.py
CHANGED
@@ -67,14 +67,14 @@ def process_image(
|
|
67 |
|
68 |
itti_saliency_map, itti_heatmap = detect_and_annotate(
|
69 |
input_image, GRIDSIZE, 'itti')
|
70 |
-
|
71 |
-
|
72 |
|
73 |
return (
|
74 |
itti_saliency_map,
|
75 |
itti_heatmap,
|
76 |
-
|
77 |
-
|
78 |
)
|
79 |
|
80 |
grid_size_Component = gr.Slider(
|
@@ -101,24 +101,24 @@ with gr.Blocks() as demo:
|
|
101 |
type='pil',
|
102 |
label='Input'
|
103 |
)
|
|
|
104 |
itti_saliency_map = gr.Image(
|
105 |
type='pil',
|
106 |
label='Itti Saliency Map'
|
107 |
)
|
108 |
-
with gr.Row():
|
109 |
itti_heatmap = gr.Image(
|
110 |
type='pil',
|
111 |
label='Itti Saliency Ranking Heatmap'
|
112 |
)
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
submit_button_component = gr.Button(
|
123 |
value='Submit',
|
124 |
scale=1,
|
@@ -134,8 +134,8 @@ with gr.Blocks() as demo:
|
|
134 |
outputs=[
|
135 |
itti_saliency_map,
|
136 |
itti_heatmap,
|
137 |
-
|
138 |
-
|
139 |
]
|
140 |
)
|
141 |
|
@@ -148,8 +148,8 @@ with gr.Blocks() as demo:
|
|
148 |
outputs=[
|
149 |
itti_saliency_map,
|
150 |
itti_heatmap,
|
151 |
-
|
152 |
-
|
153 |
]
|
154 |
)
|
155 |
|
|
|
67 |
|
68 |
itti_saliency_map, itti_heatmap = detect_and_annotate(
|
69 |
input_image, GRIDSIZE, 'itti')
|
70 |
+
deepgaze_saliency_map, deepgaze_heatmap = detect_and_annotate(
|
71 |
+
input_image, GRIDSIZE, 'deepgaze')
|
72 |
|
73 |
return (
|
74 |
itti_saliency_map,
|
75 |
itti_heatmap,
|
76 |
+
deepgaze_saliency_map,
|
77 |
+
deepgaze_heatmap,
|
78 |
)
|
79 |
|
80 |
grid_size_Component = gr.Slider(
|
|
|
101 |
type='pil',
|
102 |
label='Input'
|
103 |
)
|
104 |
+
with gr.Row():
|
105 |
itti_saliency_map = gr.Image(
|
106 |
type='pil',
|
107 |
label='Itti Saliency Map'
|
108 |
)
|
|
|
109 |
itti_heatmap = gr.Image(
|
110 |
type='pil',
|
111 |
label='Itti Saliency Ranking Heatmap'
|
112 |
)
|
113 |
+
with gr.Row():
|
114 |
+
deepgaze_saliency_map = gr.Image(
|
115 |
+
type='pil',
|
116 |
+
label='DeepGaze Saliency Map'
|
117 |
+
)
|
118 |
+
deepgaze_heatmap = gr.Image(
|
119 |
+
type='pil',
|
120 |
+
label='DeepGaze Saliency Ranking Heatmap'
|
121 |
+
)
|
122 |
submit_button_component = gr.Button(
|
123 |
value='Submit',
|
124 |
scale=1,
|
|
|
134 |
outputs=[
|
135 |
itti_saliency_map,
|
136 |
itti_heatmap,
|
137 |
+
deepgaze_saliency_map,
|
138 |
+
deepgaze_heatmap,
|
139 |
]
|
140 |
)
|
141 |
|
|
|
148 |
outputs=[
|
149 |
itti_saliency_map,
|
150 |
itti_heatmap,
|
151 |
+
deepgaze_saliency_map,
|
152 |
+
deepgaze_heatmap,
|
153 |
]
|
154 |
)
|
155 |
|