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

Memory errors in spite of adding capabilities (sometimes) #12

Open
RexLuscus opened this issue May 18, 2023 · 2 comments
Open

Memory errors in spite of adding capabilities (sometimes) #12

RexLuscus opened this issue May 18, 2023 · 2 comments

Comments

@RexLuscus
Copy link

In spite of adding the two required capabilities, I'm still (sometimes) crashing due to memory. Haven't figured out a consistent way to reproduce it, but it looks like a 50/50 chance to succeed, and once I have a failure in a session, generation continues to fail.
Model is Stable Diffusion 2.1, XCode is 14.3, device is iPhone 13 Pro, running iOS 16.4.1. Error in the log is imggensd2[1787:30752] [espresso] [Espresso::overflow_error].

Will be happy for ideas on what to check.

@ynagatomo
Copy link
Owner

Sorry. I have no ideas about this issue. So far, it seems the execution on iPhone is very difficult.

By starting over from recreating the Image generation pipeline, continuous failures may be improved somewhat. But it doesn't really solve the problem.

Anyone have any good ideas?

@RexLuscus
Copy link
Author

I did follow someone's advice to try it in the simulator, and indeed in the simulator it seems to work consistently. Memory consumption is very high (around 2.7GB at the peak of the generation cycle). Strangely enough, there's no Jetsam event for the termination on iPhone, which I guess means the application is terminating itself? Anybody has good experience with running this on iPhone?

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

No branches or pull requests

2 participants