Spaces:
Runtime error
Runtime error
File size: 4,343 Bytes
3b7b011 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
#!/bin/bash
echo -e "\033]0;Applio - Installer\007"
clear
echo " :::"
echo " ::: _ _ "
echo " ::: /\ | (_) "
echo " ::: / \ _ __ _ __ | |_ ___ "
echo " ::: / /\ \ | '_ \| '_ \| | |/ _ \ "
echo " ::: / ____ \| |_) | |_) | | | (_) | "
echo " ::: /_/ \_\ .__/| .__/|_|_|\___/ "
echo " ::: | | | | "
echo " ::: |_| |_| "
echo " ::: "
echo " ::: "
# if [[ "$(uname)" == "Darwin" ]]; then
# # macOS specific env:
# export PYTORCH_ENABLE_MPS_FALLBACK=1
# export PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0
# elif [[ "$(uname)" != "Linux" ]]; then
# echo "Unsupported operating system. Are you using Windows...?"
# echo "If yes use the batch (.bat) file insted this one!"
# exit 1
# fi
# if [ -d ".venv" ]; then
# echo "Activate venv..."
# source .venv/bin/activate
# else
# echo "Creating venv..."
requirements_file="assets/requirements/requirements-applio.txt"
# # Check if Python is installed
# if ! command -v python3 &> /dev/null; then
# echo "Python 3 not found. Attempting to install..."
# if [[ "$(uname)" == "Darwin" ]] && command -v brew &> /dev/null; then
# brew install python
# elif [[ "$(uname)" == "Linux" ]] && command -v apt-get &> /dev/null; then
# sudo apt-get update
# sudo apt-get install python
# else
# echo "Please install Python manually."
# exit 1
# fi
# fi
# Clone the repo for make this script usable with echo 1 | curl blabla https://script.sh
# git clone https://github.com/IAHispano/Applio-RVC-Fork
# cd Applio-RVC-Fork
# python -m venv .venv
# source .venv/bin/activate
chmod +x stftpitchshift
chmod +x *.sh
# maybe is needed idk
chmod +x ./lib/infer/infer_libs/stftpitchshift
python -m ensurepip
# fi
# clear
# menu() {
# while true; do
# clear
# echo
# echo "Only recommended for experienced users:"
# echo "[1] Nvidia graphics cards"
# echo "[2] AMD graphics cards"
# echo "[3] Intel ARC graphics cards"
# echo
# read -p "Select the option according to your GPU: " choice
# case $choice in
# 1)
# echo
# python -m pip install -r assets/requirements/requirements.txt
# python -m pip uninstall torch torchvision torchaudio -y
# python -m pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu117
# echo
# finish
# ;;
# 2)
# echo
# echo "Before install this check https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/en/README.en.md#rocm-support-for-amd-graphic-cards-linux-only"
# read -p "Press enter to continue"
# python -m pip install -r assets/requirements/requirements-amd.txt
# python -m pip uninstall torch torchvision torchaudio -y
# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2
# echo
# finish
# ;;
# 3)
# echo
#python -m pip install -r assets/requirements/requirements-ipex.txt
python -m pip install scikit-learn-intelex
# finish
# ;;
# *)
# echo "Invalid option. Please enter a number from 1 to 3."
# echo ""
# read -p "Press Enter to access the main menu..."
# ;;
# esac
# done
# }
# Finish installation
# finish() {
# # Check if required packages are installed and install them if notia
# # I will change this to make a requirements with the applio changes
# # And add a custom one for nvidia, ipx, amd support on linux and directml for the batch script
# if [ -f "${requirements_file}" ]; then
# installed_packages=$(python -m pip freeze)
# while IFS= read -r package; do
# [[ "${package}" =~ ^#.* ]] && continue
# package_name=$(echo "${package}" | sed 's/[<>=!].*//')
# if ! echo "${installed_packages}" | grep -q "${package_name}"; then
# echo "${package_name} not found. Attempting to install..."
# python -m pip install --upgrade "${package}"
# fi
# done < "${requirements_file}"
# else
# echo "${requirements_file} not found. Please ensure the requirements file with required packages exists."
# exit 1
# fi
# #clear
# echo "Applio has been successfully downloaded, run the file go-applio.sh to run the web interface!"
# #exit 0
# }
# Loop to the main menu
# menu |