Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image encoder resources management fix #182

Merged
merged 2 commits into from
May 7, 2023

Conversation

OlegPonomaryov
Copy link
Contributor

@OlegPonomaryov OlegPonomaryov commented May 6, 2023

The image encoder didn't unload after the usage, causing a crash due to exceeding memory limits on mobile devices (namely iPhone 13 Pro in my case) in the image2image mode. Added the encoder unload when reduceMemory is enabled, also included it into pipeline's prewarm/load/unload functions alongside other models.

  • I agree to the terms outlined in CONTRIBUTING.md

@atiorh atiorh merged commit ea904e3 into apple:main May 7, 2023
@Lamas-57428
Copy link

That I have to leave with the owners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants