Merge branch 'main' into checkpoint-ip-adapter

This commit is contained in:
blessedcoolant
2024-03-29 12:39:53 +05:30
46 changed files with 2861 additions and 3905 deletions

View File

@ -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__(