mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-25 02:38:10 +00:00
fix bug: textual inversion
This commit is contained in:
@@ -153,6 +153,8 @@ class ModelManager:
|
|||||||
|
|
||||||
# Load every textual inversion file
|
# Load every textual inversion file
|
||||||
for file_name in os.listdir(folder):
|
for file_name in os.listdir(folder):
|
||||||
|
if file_name.endswith(".txt"):
|
||||||
|
continue
|
||||||
keyword = os.path.splitext(file_name)[0]
|
keyword = os.path.splitext(file_name)[0]
|
||||||
state_dict = load_state_dict(os.path.join(folder, file_name))
|
state_dict = load_state_dict(os.path.join(folder, file_name))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user