From 2f6cce48afa99d2509fa91f2422b625479992ae0 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:54:36 +1100 Subject: [PATCH] docs(mm): update ModelSearch --- invokeai/backend/model_manager/search.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/invokeai/backend/model_manager/search.py b/invokeai/backend/model_manager/search.py index 23cd042602..fe545bfe34 100644 --- a/invokeai/backend/model_manager/search.py +++ b/invokeai/backend/model_manager/search.py @@ -48,9 +48,8 @@ class ModelSearch: Usage: search = ModelSearch() - search.model_found = lambda path : 'anime' in path.as_posix() - found = search.list_models(['/tmp/models1','/tmp/models2']) - # returns all models that have 'anime' in the path + search.on_model_found = lambda path : 'anime' in path.as_posix() + found = search.search(Path('/tmp/models1')) """ def __init__(