|
|
@@ -157,7 +157,10 @@ class LineVectorizer(nn.Module):
|
|
|
jmap = non_maximum_suppression(jmap).reshape(n_type, -1)
|
|
|
joff = joff.reshape(n_type, 2, -1)
|
|
|
N = len(junc)
|
|
|
- K = min(int(N * 2 + 2), M.n_dyn_junc // n_type)
|
|
|
+ if do_evaluation:
|
|
|
+ K = 440
|
|
|
+ else:
|
|
|
+ K = min(int(N * 2 + 2), M.n_dyn_junc // n_type)
|
|
|
device = jmap.device
|
|
|
|
|
|
# index: [N_TYPE, K]
|