Spaces:
Sleeping
Sleeping
tensorkelechi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -148,12 +148,12 @@ def run_model_pipeline(model, original_image, comparison_image, threshold=0.3):
|
|
148 |
col3, col4 = st.columns(2)
|
149 |
|
150 |
with col3:
|
151 |
-
x1 = rearrange(img1_tensor.float()
|
152 |
fig1 = visualize_heatmap(model, x1)
|
153 |
st.pyplot(fig1)
|
154 |
|
155 |
with col4:
|
156 |
-
x2 = rearrange(img2_tensor.float()
|
157 |
fig2 = visualize_heatmap(model, x2)
|
158 |
st.pyplot(fig2)
|
159 |
|
|
|
148 |
col3, col4 = st.columns(2)
|
149 |
|
150 |
with col3:
|
151 |
+
x1 = rearrange(img1_tensor.float(), 'b h w c -> b c h w')
|
152 |
fig1 = visualize_heatmap(model, x1)
|
153 |
st.pyplot(fig1)
|
154 |
|
155 |
with col4:
|
156 |
+
x2 = rearrange(img2_tensor.float(), 'b h w c -> b c h w')
|
157 |
fig2 = visualize_heatmap(model, x2)
|
158 |
st.pyplot(fig2)
|
159 |
|