This is the source code of "Patch-sampled contrastive learning for dense prediction pretraining in metallographic images". The shapes, sizes, and distributions of microstructures determine the ...