"""Matched one-epoch fold5 continuation pilots; never overwrite supplied weights.""" import argparse,time from pathlib import Path import torch import torch.nn.functional as F from torch.utils.data import DataLoader import config as C from dataset import PASTISPatchDataset,pretrain_patch_ids,pad_collate,crop_ij from model import UTAE_ASPP,UTAEPrediction from temporal_cnn import valid_from_index_positions from notebook_helpers import write_json class StructuredPrediction(UTAEPrediction): def forward(self,x,pos): b,t,c,h,w=x.shape # Four consecutive acquisitions x 4X4 pixels: all ten bands masked together. coarse=torch.rand(b,(t+3)//4,(h+3)//4,(w+3)//4,device=x.device)