Skip to content

Commit

Permalink
add lfs clone
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbds committed Dec 19, 2023
1 parent e83ea98 commit bc45ca2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,23 @@ 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
}
}

$install_CNOP = Read-Host "Do you need to download control_v11p_sd15_openpose? If you want use it select y, if you dont want select n. [y/n] (Default is y)"
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
}
}

Expand Down
7 changes: 4 additions & 3 deletions install_cn.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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") {
Expand All @@ -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
Expand Down

0 comments on commit bc45ca2

Please sign in to comment.