Closed zaverichintan closed 5 years ago
I somehow managed to fix the config.weights using the previously committed code by adding:
chainlength = config.bone.shape[0] - 1
weights = np.zeros([chainlength * 3])
for j in range(chainlength):
for i in range(j, chainlength):
weights[j*3:j*3+3] = weights[j*3] + (chainlength - i) * config.bone[i + 1][0]
weights = weights/weights.max()
weights = list(itemgetter(*config.dim_to_use)(weights))
weights = np.array(weights)
Is this the correct way of doing it?
Corrected this issue in the latest commit
In loss functions file -> Linearized lie loss. The weights are not defined in config file for the following line: weights = config.weights