Skip to content

Commit 94da130

Browse files
authored
Merge pull request #123 from Dartvauder/dev
BUGFIXES-AND-OPTIMIZATIONS-UPDATE
2 parents f396a9e + a0e77fd commit 94da130

File tree

108 files changed

+8386
-4832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8386
-4832
lines changed

HF-Token.txt

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
EN:
2-
3-
Create and log into your account at https://huggingface.co/
4-
Go to your profile settings
5-
In the "Access Tokens" section, create a new token
6-
Copy it and paste it into this text document, clearing this instruction
7-
8-
RU:
9-
10-
Создайте и войдите в свою учетную запись на https://huggingface.co/
11-
Перейдите в настройки профиля
12-
В разделе "Access Tokens" создайте новый токен
13-
Скопируйте его и впишите в этот текстовый документ очистив эту инструкцию
1+
1. Create and log into your account at https://huggingface.co/
2+
2. Go to your profile settings
3+
3. In the "Access Tokens" section, create a new token
4+
4. Copy it and paste it into this text document, clearing this instruction

Install.bat

+30-11
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,43 @@ py -m venv "%CURRENT_DIR%venv"
77
call "%CURRENT_DIR%venv\Scripts\activate.bat"
88
cls
99

10-
echo Upgrading pip, setuptools and whell...
10+
echo Upgrading pip, setuptools and wheel...
1111
python -m pip install --upgrade pip
1212
pip install wheel setuptools
13+
timeout /t 3 /nobreak >nul
1314
cls
1415

1516
echo Installing dependencies...
16-
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements.txt"
17-
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements-cuda.txt"
18-
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements-llama-cpp.txt"
19-
pip install git+https://github.com/TencentARC/PhotoMaker.git
20-
pip install git+https://github.com/tencent-ailab/IP-Adapter.git
21-
pip install git+https://github.com/vork/PyNanoInstantMeshes.git
22-
pip install git+https://github.com/openai/CLIP.git
23-
pip install git+https://github.com/tatsy/torchmcubes.git
17+
if not exist "%CURRENT_DIR%logs" mkdir "%CURRENT_DIR%logs"
18+
set ERROR_LOG="%CURRENT_DIR%logs\installation_errors.log"
19+
type nul > %ERROR_LOG%
20+
21+
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements.txt" 2>> %ERROR_LOG%
22+
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements-cuda.txt" 2>> %ERROR_LOG%
23+
pip install --no-deps -r "%CURRENT_DIR%RequirementsFiles\requirements-llama-cpp.txt" 2>> %ERROR_LOG%
24+
pip install git+https://github.com/tencent-ailab/IP-Adapter.git 2>> %ERROR_LOG%
25+
pip install git+https://github.com/vork/PyNanoInstantMeshes.git 2>> %ERROR_LOG%
26+
pip install git+https://github.com/openai/CLIP.git 2>> %ERROR_LOG%
27+
timeout /t 3 /nobreak >nul
28+
cls
29+
30+
echo Post-installing patches...
31+
python "%CURRENT_DIR%RequirementsFiles\post_install.py"
32+
timeout /t 3 /nobreak >nul
33+
cls
34+
35+
echo Checking for installation errors...
36+
findstr /C:"error" %ERROR_LOG% >nul
37+
if %ERRORLEVEL% equ 0 (
38+
echo Some packages failed to install. Please check %ERROR_LOG% for details.
39+
) else (
40+
echo Installation completed successfully.
41+
)
42+
timeout /t 5 /nobreak >nul
2443
cls
2544

26-
echo Application has been installed successfully. Run start.bat
45+
echo Application installation process completed. Run start.bat to launch the application.
2746

2847
call "%CURRENT_DIR%venv\Scripts\deactivate.bat"
2948

30-
pause
49+
pause

Install.sh

+29-11
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,42 @@ python3 -m venv "$CURRENT_DIR/venv"
77
source "$CURRENT_DIR/venv/bin/activate"
88
clear
99

10-
echo "Upgrading pip, setuptools and whell..."
10+
echo "Upgrading pip, setuptools and wheel..."
1111
python3 -m pip install --upgrade pip
1212
pip install wheel setuptools
13+
sleep 3
1314
clear
1415

1516
echo "Installing dependencies..."
16-
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements.txt"
17-
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements-cuda.txt"
18-
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements-llama-cpp.txt"
19-
pip install git+https://github.com/TencentARC/PhotoMaker.git
20-
pip install git+https://github.com/tencent-ailab/IP-Adapter.git
21-
pip install git+https://github.com/vork/PyNanoInstantMeshes.git
22-
pip install git+https://github.com/openai/CLIP.git
23-
pip install git+https://github.com/tatsy/torchmcubes.git
17+
mkdir -p "$CURRENT_DIR/logs"
18+
ERROR_LOG="$CURRENT_DIR/logs/installation_errors.log"
19+
touch "$ERROR_LOG"
20+
21+
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements.txt" 2>> "$ERROR_LOG"
22+
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements-cuda.txt" 2>> "$ERROR_LOG"
23+
pip install --no-deps -r "$CURRENT_DIR/RequirementsFiles/requirements-llama-cpp.txt" 2>> "$ERROR_LOG"
24+
pip install git+https://github.com/tencent-ailab/IP-Adapter.git 2>> "$ERROR_LOG"
25+
pip install git+https://github.com/vork/PyNanoInstantMeshes.git 2>> "$ERROR_LOG"
26+
pip install git+https://github.com/openai/CLIP.git 2>> "$ERROR_LOG"
27+
sleep 3
28+
clear
29+
30+
echo "Post-installing patches..."
31+
python3 "$CURRENT_DIR/RequirementsFiles/post_install.py"
32+
sleep 3
33+
clear
34+
35+
echo "Checking for installation errors..."
36+
if grep -iq "error" "$ERROR_LOG"; then
37+
echo "Some packages failed to install. Please check $ERROR_LOG for details."
38+
else
39+
echo "All packages installed successfully."
40+
fi
41+
sleep 5
2442
clear
2543

26-
echo "Application has been installed successfully. Run start.sh"
44+
echo "Application installation process completed. Run start.sh to launch the application."
2745

2846
deactivate
2947

30-
read -p "Press enter to continue"
48+
read -p "Press enter to continue"

0 commit comments

Comments
 (0)