Mirror-variable in pose_cfg.yaml (dataset symmetric around horizontal axis)

deeplabcut

#1

Hi there,
I am training a dataset with frames mirrored along the horizontal instead of the vertical axis.
Is there a way to change the mirror-variable in the pose_cfg.yaml file so that I can use it for horizontally instead of vertically mirrored frames?
Any help/ideas appreciated :slight_smile:
Thanks!


#2

I don’t think there’s a way to do this inside the current version.

A possible workaround would be to use videos rotated 90 degrees, and then set the ‘mirror’ option to True. Whether that’s worthwhile will depend on how much work it takes versus how much it improves your results, since DLC can be quite good even without additional augmentation.


#3

Thanks, I should have thought of that myself :smiley: I will see whether there’s an option to batch-rotate them without much work.


#4

Unfortunately, there is no vertical mirroring (currently), but that could be added…