* Fix fliplr augmentation for multi animal 2
The current implementation of fliplr breaks when keypoints are hidden since only labels for visible points are forwarded to the pipeline. This is the second attempt at fixing this as an earlier attempt failed due to the error fixed in PR #2037.
* added missing batch_joints append from DLC PR 1946
* made same changes to get_batch_from_video as get_batch. style fixes.
* Fix indices when training with identity
* Fix and expand unit tests
---------
Co-authored-by: Niels Poulsen <niels.poulsen@epfl.ch>
Co-authored-by: Jessy Lauer <30733203+jeylau@users.noreply.github.com>
In #1946, np.full(..., np.nan) is required in order for FlipLR to work when keypoints are hidden. Occasionally though, a NaN point can be sampled as crop center
DeepLabCut/deeplabcut/pose_estimation_tensorflow/datasets/augmentation.py
Lines 94 to 107 in ecbb858
This one-liner addresses this bug.