Spaces:
Sleeping
Sleeping
Update yolov5.py
Browse files
yolov5.py
CHANGED
@@ -232,7 +232,7 @@ def dff_nmf(image, target_lyr, n_components):
|
|
232 |
|
233 |
fig.canvas.draw() # Draw the canvas to make sure the image is rendered
|
234 |
image_array = np.array(fig.canvas.renderer.buffer_rgba()) # Convert to numpy array
|
235 |
-
results.append(image_array
|
236 |
plt.clf()
|
237 |
#return image_array
|
238 |
|
|
|
232 |
|
233 |
fig.canvas.draw() # Draw the canvas to make sure the image is rendered
|
234 |
image_array = np.array(fig.canvas.renderer.buffer_rgba()) # Convert to numpy array
|
235 |
+
results.append(image_array)
|
236 |
plt.clf()
|
237 |
#return image_array
|
238 |
|