We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb3d0c4 commit aa02ebfCopy full SHA for aa02ebf
1 file changed
invokeai/backend/model_management/model_cache.py
@@ -493,7 +493,7 @@ def _make_cache_room(self, model_size):
493
else:
494
pos += 1
495
496
- if models_cleared < 0:
+ if models_cleared > 0:
497
# There would likely be some 'garbage' to be collected regardless of whether a model was cleared or not, but
498
# there is a significant time cost to calling `gc.collect()`, so we want to use it sparingly. (The time cost
499
# is high even if no garbage gets collected.)
0 commit comments