Spaces:
Build error
Build error
temp
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ col = plt.get_cmap('tab10')
|
|
34 |
|
35 |
def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
|
36 |
|
37 |
-
im1_tensor = transform(im1)
|
38 |
-
im2_tensor = transform(im2)
|
39 |
|
40 |
# im1_cv = cv2.imread(im1)
|
41 |
# im2_cv = cv2.imread(im2)
|
@@ -55,6 +55,7 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
|
|
55 |
print(len(feats1))
|
56 |
# print(feats1.shape)
|
57 |
print(feats1[0].shape)
|
|
|
58 |
# print(attns1.shape)
|
59 |
# print(strenghts1.shape)
|
60 |
|
|
|
34 |
|
35 |
def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
|
36 |
|
37 |
+
im1_tensor = transform(im1).unsqueeze(0)
|
38 |
+
im2_tensor = transform(im2).unsqueeze(0)
|
39 |
|
40 |
# im1_cv = cv2.imread(im1)
|
41 |
# im2_cv = cv2.imread(im2)
|
|
|
55 |
print(len(feats1))
|
56 |
# print(feats1.shape)
|
57 |
print(feats1[0].shape)
|
58 |
+
print(attns1[0].shape)
|
59 |
# print(attns1.shape)
|
60 |
# print(strenghts1.shape)
|
61 |
|