mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
fix hub case issue
This commit is contained in:
@@ -70,6 +70,7 @@ def snapshot_download(model_id: str,
|
||||
if isinstance(cache_dir, Path):
|
||||
cache_dir = str(cache_dir)
|
||||
temporary_cache_dir = os.path.join(cache_dir, 'temp')
|
||||
os.makedirs(temporary_cache_dir, exist_ok=True)
|
||||
|
||||
group_or_owner, name = model_id_to_group_owner_name(model_id)
|
||||
name = name.replace('.', '___')
|
||||
|
||||
Reference in New Issue
Block a user