Merge branch 'refactor/model-manager-3' of github.com:invoke-ai/InvokeAI into refactor/model-manager-3

This commit is contained in:
Lincoln Stein 2023-12-10 12:55:24 -05:00
commit e2567a7e31

View File

@ -128,11 +128,7 @@ class ModelSearch(ModelSearchBase):
def model_found(self, model: Path) -> None:
self.stats.models_found += 1
if not self.on_model_found:
self.stats.models_filtered += 1
self.models_found.add(model)
return
if self.on_model_found(model):
if not self.on_model_found or self.on_model_found(model):
self.stats.models_filtered += 1
self.models_found.add(model)