Spaces:
Build error
Build error
updated from the interface cause hell is loose at the nle cluster
Browse files
app.py
CHANGED
|
@@ -116,19 +116,23 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
|
|
| 116 |
img2rsz[m,n, :] = col_[::-1]
|
| 117 |
fin_img.append(img2rsz)
|
| 118 |
|
| 119 |
-
fig1 = plt.figure()
|
| 120 |
fig1.show(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
|
| 121 |
ax1 = plt.gca()
|
| 122 |
ax1.axis('scaled')
|
| 123 |
ax1.axis('off')
|
| 124 |
|
| 125 |
plt.tight_layout()
|
|
|
|
| 126 |
|
| 127 |
-
fig2 = plt.figure()
|
| 128 |
fig2.show(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
|
| 129 |
ax2 = plt.gca()
|
| 130 |
ax2.axis('scaled')
|
| 131 |
ax2.axis('off')
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
# fig = plt.figure()
|
| 134 |
# grid = ImageGrid(fig, 111, nrows_ncols=(2, 1), axes_pad=0.1)
|
|
@@ -169,7 +173,7 @@ iface = gr.Interface(
|
|
| 169 |
outputs=["plot", "plot"],
|
| 170 |
# outputs=gr.outputs.Image(shape=(1024,2048), type="plot"),
|
| 171 |
title=title,
|
| 172 |
-
theme='
|
| 173 |
layout="horizontal",
|
| 174 |
description=description,
|
| 175 |
article=article,
|
|
|
|
| 116 |
img2rsz[m,n, :] = col_[::-1]
|
| 117 |
fin_img.append(img2rsz)
|
| 118 |
|
| 119 |
+
fig1 = plt.figure(1)
|
| 120 |
fig1.show(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
|
| 121 |
ax1 = plt.gca()
|
| 122 |
ax1.axis('scaled')
|
| 123 |
ax1.axis('off')
|
| 124 |
|
| 125 |
plt.tight_layout()
|
| 126 |
+
fig1.canvas.draw()
|
| 127 |
|
| 128 |
+
fig2 = plt.figure(2)
|
| 129 |
fig2.show(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
|
| 130 |
ax2 = plt.gca()
|
| 131 |
ax2.axis('scaled')
|
| 132 |
ax2.axis('off')
|
| 133 |
+
|
| 134 |
+
plt.tight_layout()
|
| 135 |
+
fig2.canvas.draw()
|
| 136 |
|
| 137 |
# fig = plt.figure()
|
| 138 |
# grid = ImageGrid(fig, 111, nrows_ncols=(2, 1), axes_pad=0.1)
|
|
|
|
| 173 |
outputs=["plot", "plot"],
|
| 174 |
# outputs=gr.outputs.Image(shape=(1024,2048), type="plot"),
|
| 175 |
title=title,
|
| 176 |
+
theme='peach',
|
| 177 |
layout="horizontal",
|
| 178 |
description=description,
|
| 179 |
article=article,
|