Merge branch 'feat/cnr' into feat/cnr-no-suffix
This commit is contained in:
@@ -38,6 +38,8 @@ def basic_download_url(url, dest_folder, filename):
|
||||
|
||||
|
||||
def download_url(model_url: str, model_dir: str, filename: str):
|
||||
if HF_ENDPOINT:
|
||||
model_url = model_url.replace('https://huggingface.co', HF_ENDPOINT)
|
||||
if aria2:
|
||||
return aria2_download_url(model_url, model_dir, filename)
|
||||
else:
|
||||
@@ -66,9 +68,6 @@ def aria2_download_url(model_url: str, model_dir: str, filename: str):
|
||||
if model_dir.startswith(core.comfy_path):
|
||||
model_dir = model_dir[len(core.comfy_path) :]
|
||||
|
||||
if HF_ENDPOINT:
|
||||
model_url = model_url.replace('https://huggingface.co', HF_ENDPOINT)
|
||||
|
||||
download_dir = model_dir if model_dir.startswith('/') else os.path.join('/models', model_dir)
|
||||
|
||||
download = aria2_find_task(download_dir, filename)
|
||||
|
||||
@@ -1400,10 +1400,11 @@ async def default_cache_update():
|
||||
|
||||
await asyncio.gather(a, b, c, d, e)
|
||||
|
||||
if not core.get_config()['skip_migration_check']:
|
||||
await core.check_need_to_migrate()
|
||||
else:
|
||||
logging.info("[ComfyUI-Manager] Migration check is skipped...")
|
||||
# NOTE: hide migration button temporarily.
|
||||
# if not core.get_config()['skip_migration_check']:
|
||||
# await core.check_need_to_migrate()
|
||||
# else:
|
||||
# logging.info("[ComfyUI-Manager] Migration check is skipped...")
|
||||
|
||||
|
||||
threading.Thread(target=lambda: asyncio.run(default_cache_update())).start()
|
||||
|
||||
Reference in New Issue
Block a user