Spaces:
Build error
Build error
edits
Browse files
app.py
CHANGED
@@ -132,7 +132,7 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50, sf_ids='
|
|
132 |
print('im1:', im1.size)
|
133 |
print('img1rsz:', img1rsz.shape)
|
134 |
for j, att in enumerate(all_att_bin1):
|
135 |
-
att = cv2.resize(att,
|
136 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1], interpolation=cv2.INTER_CUBIC)
|
137 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1])
|
138 |
# att = att.resize(shape)
|
@@ -149,7 +149,7 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50, sf_ids='
|
|
149 |
print('im2:', im2.size)
|
150 |
print('img2rsz:', img2rsz.shape)
|
151 |
for j, att in enumerate(all_att_bin2):
|
152 |
-
att = cv2.resize(att,
|
153 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1], interpolation=cv2.INTER_CUBIC)
|
154 |
# # att = cv2.resize(att, imgz[i].shape[:2][::-1])
|
155 |
# att = att.resize(im2.shape)
|
|
|
132 |
print('im1:', im1.size)
|
133 |
print('img1rsz:', img1rsz.shape)
|
134 |
for j, att in enumerate(all_att_bin1):
|
135 |
+
att = cv2.resize(att, im1.size, interpolation=cv2.INTER_NEAREST)
|
136 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1], interpolation=cv2.INTER_CUBIC)
|
137 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1])
|
138 |
# att = att.resize(shape)
|
|
|
149 |
print('im2:', im2.size)
|
150 |
print('img2rsz:', img2rsz.shape)
|
151 |
for j, att in enumerate(all_att_bin2):
|
152 |
+
att = cv2.resize(att, im2.size, interpolation=cv2.INTER_NEAREST)
|
153 |
# att = cv2.resize(att, imgz[i].shape[:2][::-1], interpolation=cv2.INTER_CUBIC)
|
154 |
# # att = cv2.resize(att, imgz[i].shape[:2][::-1])
|
155 |
# att = att.resize(im2.shape)
|