Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,7 +162,7 @@ if uploaded_img is not None:
|
|
| 162 |
st.image(img_resized, caption="Uploaded Image (Resized to 28x28)", use_container_width=True, channels="GRAY")
|
| 163 |
|
| 164 |
# Create intermediate model to get output from selected conv layer
|
| 165 |
-
func_model = Model(inputs=model.input, outputs=selected_layer.output)
|
| 166 |
fm = func_model.predict(input_img)[0] # shape: (H, W, C)
|
| 167 |
|
| 168 |
# Display feature maps
|
|
|
|
| 162 |
st.image(img_resized, caption="Uploaded Image (Resized to 28x28)", use_container_width=True, channels="GRAY")
|
| 163 |
|
| 164 |
# Create intermediate model to get output from selected conv layer
|
| 165 |
+
func_model = Model(inputs=model.layers[0].input, outputs=selected_layer.output)
|
| 166 |
fm = func_model.predict(input_img)[0] # shape: (H, W, C)
|
| 167 |
|
| 168 |
# Display feature maps
|