Skip to content

Commit

Permalink
feat: add ali pip mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 5, 2023
1 parent 7c66121 commit adb12b7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,13 @@ source venv/bin/activate
# Delete pip cache to avoid some errors
pip cache purge

# Tsinghua mirror has no nightly package, which is needed by basicsr
# if ! $net_connected; then
# pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# pip install torch
# fi
if ! $net_connected; then
# Tsinghua mirror has no tb-nightly package, which is needed by basicsr
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set global.extra-index-url https://pypi.tuna.tsinghua.edu.cn/simple

pip install torch
fi

pip install --upgrade pip setuptools
pip install basicsr==1.4.2
Expand Down

0 comments on commit adb12b7

Please sign in to comment.