mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 01:48:13 +00:00
fix modelconfig
This commit is contained in:
@@ -178,9 +178,9 @@ class ModelConfig:
|
|||||||
is_folder = False
|
is_folder = False
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
|
if self.local_model_path is None:
|
||||||
|
self.local_model_path = "./models"
|
||||||
if not skip_download:
|
if not skip_download:
|
||||||
if self.local_model_path is None:
|
|
||||||
self.local_model_path = "./models"
|
|
||||||
downloaded_files = glob.glob(self.origin_file_pattern, root_dir=os.path.join(self.local_model_path, self.model_id))
|
downloaded_files = glob.glob(self.origin_file_pattern, root_dir=os.path.join(self.local_model_path, self.model_id))
|
||||||
snapshot_download(
|
snapshot_download(
|
||||||
self.model_id,
|
self.model_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user