mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update invokeai/backend/model_manager/search.py
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
This commit is contained in:
parent
913c68982a
commit
aab6369ffe
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user