The official PyTorch implementation of the paper "Multiscale Restoration of Missing Data in Optical Time-series Images with Masked Spatial-Temporal Attention Network".
MS$^2$TAN is named after Multi-Scale Masked Spatial-Temporal Attention Network.
MSMSTAN -> (MS)$^2$TAN -> MS$^2$TAN ✨️
- 2026.1.27: We released the training and evaluation notebook and script.
- 2025.9.30: We released the core code of the model.
The overall flowchart of the proposed method consists of two main components: a Multi-scale Restoration Network with MSTA-based Feature Extractors, and a ``Pixel-Structure-Perception'' Multi-Objective Joint Optimization method.
import torch
from models.network import *
device = "cuda"
num_frame = 10
num_channel = 6
img_size = 120
model = MS2TAN(
dim_list=[256, 192, 128],
num_frame=num_frame,
image_size=img_size,
patch_list=[12, 10, 8],
in_chans=num_channel,
out_chans=num_channel,
depth_list=[2, 2, 2],
heads_list=[8, 6, 4],
dim_head_list=[32, 32, 32],
)If you have any questions or suggestions, feel free to contact me.
Email: zzaiyan@whu.edu.cn, zzaiyan@cug.edu.cn
If you find our work useful in your research, we would appreciate your citation.
@article{zhang2025multi,
author = {Zhang, Zaiyan and Yan, Jining and Liang, Yuanqi and Feng, Jiaxin and He, Haixu and Cao, Li},
journal = {IEEE Transactions on Geoscience and Remote Sensing},
title = {Multiscale Restoration of Missing Data in Optical Time-series Images with Masked Spatial-Temporal Attention Network},
year = {2025},
volume = {63},
pages = {1-15},
doi = {10.1109/TGRS.2025.3574799}
}
