OSLSM(One-Shot Learning for Semantic Segmentation)[1] firstly proposed two-branch approach to one-shot semantic segmentation. Conditioning branch trains a network
to get parameter
$\theta$, and Segmentaion branchoutputs the final mask
based on parameter $\theta$. There are some details of reading and implementing it.