UnDAF: A General Unsupervised Domain Adaptation Framework for Disparity or Optical Flow Estimation