Code repository for the implementation of the ResUNet-CMB network from "Reconstructing Patchy Reionization with Deep Learning" (https://arxiv.org/abs/2101.01214) and "Reconstructing Cosmic Polarization Rotation with ResUNet-CMB" (https://arxiv.org/abs/2109.09715)