Closed KirillKukharev closed 1 year ago
Hello @KirillKukharev, thanks for opening this issue. I've been meaning to create a Colab demo notebook but got carried away by other things.
One thing that immediately comes to mind is using accelerate
. IIRC, simply pip install accelerate
should make things better due to their default setting. However, your mileage may vary depending on the configuration and generation arguments.
Story Teller is already generating one image at a time instead of batching, so I would say that it is already erring on the side of being slow while saving on memory. I'm curious to see at which stage memory is running out (File I/O, image generation, TTS). Sorry that I don't have a definitive answer; please keep me posted if you have any updates, and I'll do the same. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've got an error "The session has been terminated because the amount of RAM is completely exhausted." The same problem with GPU. Are there ways to optimize memory in Story Teller for colab?