BII-wushuang / Lie-Group-Motion-Prediction

Code for CVPR2019 Towards Natural and Accurate Future Motion Prediction of Humans and Animals
https://coderstellaj.github.io/Hierarchical-Motion-Recurrent-Network-Website/
MIT License
98 stars 18 forks source link

Weights not defined in Config file #2

Closed zaverichintan closed 5 years ago

zaverichintan commented 5 years ago

In loss functions file -> Linearized lie loss. The weights are not defined in config file for the following line: weights = config.weights

zaverichintan commented 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?

BII-wushuang commented 5 years ago

Corrected this issue in the latest commit