From bc45ca250ee31353539a722a45b2577c282a3c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E9=BE=8D=E8=81=96=E8=80=85=40bdsqlsz?= Date: Wed, 20 Dec 2023 00:58:28 +0800 Subject: [PATCH] add lfs clone --- install.ps1 | 7 ++++--- install_cn.ps1 | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/install.ps1 b/install.ps1 index 44f576e7..585773f3 100644 --- a/install.ps1 +++ b/install.ps1 @@ -22,14 +22,15 @@ Set-Location .\pretrained_models if (!(Test-Path -Path "MagicAnimate")) { Write-Output "Downloading MagicAnimate models..." - git clone https://huggingface.co/zcxu-eric/MagicAnimate + git lfs install + git lfs clone https://huggingface.co/zcxu-eric/MagicAnimate } $install_SD15 = Read-Host "Do you need to download SD15? If you don't have any SD15 model locally select y, if you want to change to another SD1.5 model select n. [y/n] (Default is y)" if ($install_SD15 -eq "y" -or $install_SD15 -eq "Y" -or $install_SD15 -eq ""){ if (!(Test-Path -Path "stable-diffusion-v1-5")) { Write-Output "Downloading stable-diffusion-v1-5 models..." - git clone https://huggingface.co/bdsqlsz/stable-diffusion-v1-5 + git lfs clone https://huggingface.co/bdsqlsz/stable-diffusion-v1-5 } } @@ -37,7 +38,7 @@ $install_CNOP = Read-Host "Do you need to download control_v11p_sd15_openpose? I if ($install_CNOP -eq "y" -or $install_CNOP -eq "Y" -or $install_CNOP -eq ""){ if (!(Test-Path -Path "control_v11p_sd15_openpose")) { Write-Output "Downloading control_v11p_sd15_openpose models..." - git clone https://huggingface.co/bdsqlsz/control_v11p_sd15_openpose + git lfs clone https://huggingface.co/bdsqlsz/control_v11p_sd15_openpose } } diff --git a/install_cn.ps1 b/install_cn.ps1 index 4cf639be..062497d3 100644 --- a/install_cn.ps1 +++ b/install_cn.ps1 @@ -22,7 +22,8 @@ Set-Location .\pretrained_models if (!(Test-Path -Path "MagicAnimate")) { Write-Output "下载MagicAnimate模型..." - git clone https://huggingface.co/zcxu-eric/MagicAnimate + git lfs install + git lfs clone https://huggingface.co/zcxu-eric/MagicAnimate } if (Test-Path -Path "MagicAnimate/.git/lfs") { Remove-Item -Path MagicAnimate/.git/lfs/* -Recurse -Force @@ -32,7 +33,7 @@ $install_SD15 = Read-Host " if ($install_SD15 -eq "y" -or $install_SD15 -eq "Y" -or $install_SD15 -eq "") { if (!(Test-Path -Path "stable-diffusion-v1-5")) { Write-Output "下载 stable-diffusion-v1-5 模型..." - git clone https://huggingface.co/bdsqlsz/stable-diffusion-v1-5 + git lfs clone https://huggingface.co/bdsqlsz/stable-diffusion-v1-5 } if (Test-Path -Path "stable-diffusion-v1-5/.git/lfs") { @@ -44,7 +45,7 @@ $install_CNOP = Read-Host " if ($install_CNOP -eq "y" -or $install_CNOP -eq "Y" -or $install_CNOP -eq ""){ if (!(Test-Path -Path "control_v11p_sd15_openpose")) { Write-Output "下载 control_v11p_sd15_openpose 模型..." - git clone https://huggingface.co/bdsqlsz/control_v11p_sd15_openpose + git lfs clone https://huggingface.co/bdsqlsz/control_v11p_sd15_openpose } if (Test-Path -Path "control_v11p_sd15_openpose/.git/lfs") { Remove-Item -Path control_v11p_sd15_openpose/.git/lfs/* -Recurse -Force