support for searching subdirectory names for extra networks

This commit is contained in:
AUTOMATIC
2023-01-29 10:20:19 +03:00
parent 1d24665229
commit f6b7768f84
8 changed files with 20 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ class CheckpointInfo:
name = name[1:]
self.name = name
self.name_for_extra = os.path.splitext(os.path.basename(filename))[0]
self.model_name = os.path.splitext(name.replace("/", "_").replace("\\", "_"))[0]
self.hash = model_hash(filename)