You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed there is a bug in the way you are accessing elements in the translation vector, t.
It is a 2D array, yet you are treating it as a single list.
Here is how you are accessing the elements: trans_params = np.array([w0, h0, s, t[0], t[1]]). This definitely raises a value error!
However, the correct way of accessing elements in a 2D array would be : trans_params = np.array([w0, h0, s, t[0][0], t[1][0]])
The bug is line 196 in the preprocess.py script under utils.
The text was updated successfully, but these errors were encountered:
I noticed there is a bug in the way you are accessing elements in the translation vector, t.
It is a 2D array, yet you are treating it as a single list.
Here is how you are accessing the elements: trans_params = np.array([w0, h0, s, t[0], t[1]]). This definitely raises a value error!
However, the correct way of accessing elements in a 2D array would be : trans_params = np.array([w0, h0, s, t[0][0], t[1][0]])
The bug is line 196 in the preprocess.py script under utils.
The text was updated successfully, but these errors were encountered: