English

Self-Supervised One-Shot Learning for Automatic Segmentation of StyleGAN Images

Computer Vision and Pattern Recognition 2023-10-24 v3 Machine Learning

Abstract

We propose a framework for the automatic one-shot segmentation of synthetic images generated by a StyleGAN. Our framework is based on the observation that the multi-scale hidden features in the GAN generator hold useful semantic information that can be utilized for automatic on-the-fly segmentation of the generated images. Using these features, our framework learns to segment synthetic images using a self-supervised contrastive clustering algorithm that projects the hidden features into a compact space for per-pixel classification. This contrastive learner is based on using a novel data augmentation strategy and a pixel-wise swapped prediction loss that leads to faster learning of the feature vectors for one-shot segmentation. We have tested our implementation on five standard benchmarks to yield a segmentation performance that not only outperforms the semi-supervised baselines by an average wIoU margin of 1.02 % but also improves the inference speeds by a factor of 4.5. Finally, we also show the results of using the proposed one-shot learner in implementing BagGAN, a framework for producing annotated synthetic baggage X-ray scans for threat detection. This framework was trained and tested on the PIDRay baggage benchmark to yield a performance comparable to its baseline segmenter based on manual annotations.

Keywords

Cite

@article{arxiv.2303.05639,
  title  = {Self-Supervised One-Shot Learning for Automatic Segmentation of StyleGAN Images},
  author = {Ankit Manerikar and Avinash C. Kak},
  journal= {arXiv preprint arXiv:2303.05639},
  year   = {2023}
}
R2 v1 2026-06-28T09:10:19.566Z