Official python implementation of LayeredDoc: Domain Adaptive Document Restoration with a Layer Separation Approach