for i, target in enumerate(targets):
cost_matrix[i, :] = self._metric(self.samples[target], features)
The self.samples[target] is always a (x,1,512) (x is related to my hyperparameters N_INIT) matrix and the features current frame will be a (1,1,512) matrix, which leading to the error in line 54
1. - np.dot(a, b.T)
ValueError: shapes (2,1,512) and (512,1,1) not aligned: 512 (dim 2) != 1 (dim 1)
It feels like self.samples has been adding up before confirmed
In file
sort/nn_matching.py
line175
,176
.The
self.samples[target]
is always a (x,1,512) (x is related to my hyperparametersN_INIT
) matrix and thefeatures
current frame will be a (1,1,512) matrix, which leading to the error in line54
ValueError: shapes (2,1,512) and (512,1,1) not aligned: 512 (dim 2) != 1 (dim 1)
It feels like
self.samples
has been adding up before confirmed