def __deepcopy__(self, memo):
        """Only copy the object when applying deepcopy."""
        other = type(self)(deepcopy(self.obj))
        memo[id(self)] = other
        return other
Only copy the object when applying deepcopy.
mmpose/projects/yolox_pose/models/utils.py