-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure --free_gpu_mem still works when using CKPT-based diffuser m…
…odel (#2367) This PR attempts to fix `--free_gpu_mem` option that was not working in CKPT-based diffuser model after #1583. I noticed that the memory usage after #1583 did not decrease after generating an image when `--free_gpu_mem` option was enabled. It turns out that the option was not propagated into `Generator` instance, hence the generation will always run without the memory saving procedure. This PR also related to #2326. Initially, I was trying to make `--free_gpu_mem` works on 🤗 diffuser model as well. In the process, I noticed that InvokeAI will raise an exception when `--free_gpu_mem` is enabled. I tried to quickly fix it by simply ignoring the exception and produce a warning message to user's console.
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters