Skip to content

DOC FIX: Remove “This transform does not support PIL Image.” for RandomErasing in v2; add it back for v1#9440

Open
zy1git wants to merge 1 commit intopytorch:mainfrom
zy1git:RandomErasing-docfix
Open

DOC FIX: Remove “This transform does not support PIL Image.” for RandomErasing in v2; add it back for v1#9440
zy1git wants to merge 1 commit intopytorch:mainfrom
zy1git:RandomErasing-docfix

Conversation

@zy1git
Copy link
Contributor

@zy1git zy1git commented Mar 12, 2026

After investigation, we found that RandomErasing supports PIL images in v2, but not in v1. This PR is created to fix the doc by removing "This transform does not support PIL Image." on V2 and add back "does not support PIL Images" on V1.

Fix the merged PR: #9431

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 12, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9440

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (1 Unrelated Failure)

As of commit 93d7af1 with merge base 6f131f1 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant