|
|
@@ -500,10 +500,10 @@ def heatmaps_to_lines(maps, rois):
|
|
|
def lines_features_align(features, proposals, img_size):
|
|
|
print(f'lines_features_align features:{features.shape}')
|
|
|
|
|
|
-
|
|
|
+ align_feat_list = []
|
|
|
for feat, proposals_per_img in zip(features,proposals):
|
|
|
# print(f'lines_features_align feat:{feat.shape}, proposals_per_img:{proposals_per_img.shape}')
|
|
|
- align_feat_list=[]
|
|
|
+
|
|
|
feat=feat.unsqueeze(0)
|
|
|
for proposal in proposals_per_img:
|
|
|
align_feat = torch.zeros_like(feat)
|