Skip to content

Bump pillow from 12.0.0 to 13.0.0 in /examples/arm/super_resolution_example_vgf - #24032

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/examples/arm/super_resolution_example_vgf/pillow-13.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/examples/arm/super_resolution_example_vgf/pillow-13.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Bumps pillow from 12.0.0 to 13.0.0.

Release notes

Sourced from pillow's releases.

13.0.0

https://pillow.readthedocs.io/en/stable/releasenotes/13.0.0.html

Removals

Deprecations

Documentation

Dependencies

... (truncated)

Commits
  • 293218a 13.0.0 version bump
  • 262e8e4 Update release notes for Pillow 13.0.0 (#10223)
  • af56ace Validate TIFF tag values against libtiff's own field definition before TIFFSe...
  • 570df03 Validate TIFF tag values against libtiff's own field definition before TIFFSe...
  • 53318b5 Take libtiff scanline geometry tags from the image, not tiffinfo/exif (#10226)
  • 0a87417 Bound retained TIFF tag data by stream size (#10225)
  • 11582e5 Fix heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO (#10224)
  • 8501adc Fix test
  • ec5f1cb Take libtiff scanline geometry tags from the image, not tiffinfo/exif
  • 4b63dff Share TIFF tag data budget across frames
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Bumps [pillow](https://github.com/python-pillow/Pillow) from 12.0.0 to 13.0.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@12.0.0...13.0.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 13.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Oct 20, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24032

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

❌ 1 New Failure, 1 Cancelled Job

As of commit 0fe81cf with merge base a4e65bf (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 20, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Oct 20, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@zingo

zingo commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

@claude review, is there any risks with this?

@claude

claude Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Claude finished @zingo's task in 1m 11s —— View job


This bump looks low-risk, but no CI job runs the Swin2SR example, so nothing in this PR's CI tells you whether it works with Pillow 13. Before merging, run backends/arm/test/test_arm_ootb.sh run_swin2sr_e2e_vgf once by hand.

Detailed review

PR Review: #24032

Summary

The PR raises the exact pin from Pillow == 12.0.0 to Pillow == 13.0.0 in examples/arm/super_resolution_example_vgf/requirements.txt. I found no blocking problems. The real gap is that nothing in CI tests this change.

For context, these are the things that are not a risk:

  • Python 3.10 drop: ExecuTorch already requires >=3.11,<3.16 (pyproject.toml:60).
  • Other Pillow pins in the repo: none conflict. backends/mediatek, extension/diffusers and person_detection_example_cortex_m all leave Pillow unpinned.
  • Pillow APIs the example uses: Image.open, .convert("RGB"), .resize(..., Image.Resampling.BICUBIC), .save and Image.fromarray. None of these appear in the 13.0.0 removals listed in the PR body.

Infrastructure

  • CI does not test this change. run_swin2sr_e2e_vgf (backends/arm/test/test_arm_ootb.sh:247) is the only thing that installs this requirements.txt. It runs only when test_arm_ootb.sh is called with no arguments. test_arm_backend.sh has wrappers for run_ootb_tests_*, run_deit_e2e_ethos_u and run_person_detection_e2e_cortex_m, but none for Swin2SR, and pull.yml and trunk.yml never call it. A green CI run therefore says nothing about Pillow 13 working here. The current failures are also unrelated: test-multimodal-linux (gemma3-4b) failed and test-qnn-python-imports-linux was cancelled. Running backends/arm/test/test_arm_ootb.sh run_swin2sr_e2e_vgf once locally would settle it. Separately, it may be worth adding a test_swin2sr_e2e_vgf wrapper next to the existing e2e wrappers so future dependabot bumps get tested.

Code Quality

  • Image.fromarray(..., mode=...) (low confidence). runtime/run_super_resolution.py:102 and :104 pass mode="L" and mode="RGB". Pillow 11.3 deprecated the mode argument and scheduled it for removal in 13.0. My understanding is that Pillow 12 narrowed the deprecation so that a mode matching the array's dtype and shape stays allowed. That covers this code, since it passes uint8 HxW with "L" and uint8 HxWx3 with "RGB". I couldn't fetch the 13.0.0 release notes from this runner to confirm that "Remove deprecations for Pillow 13.0.0" (Improve ET_CHECK_OR_RETURN_FALSE error messages in kernels/portable #9751) leaves this alone. If it doesn't, writing the output image will fail with a TypeError. Dropping the argument makes the question moot, because Pillow infers the same modes from the array: Image.fromarray(image_np[..., 0]) / Image.fromarray(image_np). The local e2e run above would also catch it.

Recommendation

Approve after one manual run of run_swin2sr_e2e_vgf. Optionally remove the redundant mode= arguments in run_super_resolution.py so this doesn't depend on the details of Pillow's deprecation.

This branch was successfully deployed

1 active deployment
cadence — 0fe81cf9 Deployed Oct 20, 2026 by dependabot[bot] via hifi-op-test / hifi4 #34223
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. dependencies Pull requests that update a dependency file module: arm Issues related to arm backend python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant