Skip to content

NaN values in Predictions #7

@nhafez

Description

@nhafez

After following the instructions in the latest commit and then running the train_and_test_deepim_all.sh I got the following error:

Traceback (most recent call last):
File "experiments/deepim/deepim_train_test.py", line 20, in
train.main()
File "experiments/deepim/../../deepim/train.py", line 287, in main
config.TRAIN.begin_epoch, config.TRAIN.end_epoch, config.TRAIN.lr, config.TRAIN.lr_step)
File "experiments/deepim/../../deepim/train.py", line 280, in train_net
prefix=prefix)
File "experiments/deepim/../../deepim/core/module.py", line 1026, in fit
data_batch = interBatchUpdater.forward(data_batch, preds, config)
File "experiments/deepim/../../lib/pair_matching/batch_updater_py_multi.py", line 231, in forward
rot_type='QUAT')
File "experiments/deepim/../../lib/pair_matching/RT_transform.py", line 34, in calc_RT_delta
r = mat2quat(Rm_delta)
File "experiments/deepim/../../lib/pair_matching/RT_transform.py", line 459, in mat2quat
vals, vecs = np.linalg.eigh(K)
File "/home/saadhana/.local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 1410, in eigh
w, vt = gufunc(a, signature=signature, extobj=extobj)
File "/home/saadhana/.local/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 95, in _raise_linalgerror_eigenvalues_nonconvergence
raise LinAlgError("Eigenvalues did not converge")
numpy.linalg.linalg.LinAlgError: Eigenvalues did not converge

Looks like the predicted poses are all NaN values.
I printed the rotation and translation predicted:

[array([[nan, nan, nan, nan],
[nan, nan, nan, nan],
[nan, nan, nan, nan],
[nan, nan, nan, nan]], dtype=float32)] [array([[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan]], dtype=float32)]

Has anybody successfully trained the network for LINEMOD or OCCLUSION datasets?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions