pytorch / pytorch/vision

MixUp and CutMix transforms for semantic segmentation

Open
#9,215 1 comment 0 reactions 1 assignee View on GitHub

@AntoineSimoulin is already working on this.

Since Sep 15, 2025.

Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

Is there any way to use the MixUp and CutMix transforms for semantic segmentation masks? I could not find any documentation on it.

If this functionality does not exist, I will be happy to submit a PR for the same.

Motivation - CutMix is used in SOTA semi-supervised semantic segmentation methods such as UniMatch and MixUp is used in knowledge distillation methods such as "Knowledge distillation: A good teacher is patient and consistent"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.