-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated windows installation scripts removed micromamba
- Loading branch information
Showing
4 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
rem Part of DiffusionMagic - Script to install DiffusionMagic | ||
%~dp0tools\windows\micromamba.exe -r %~dp0env create -y -f %~dp0environment.yml | ||
echo DiffusionMagic installation completed. | ||
|
||
@echo off | ||
setlocal | ||
echo Starting DiffusionMagic env installation... | ||
|
||
set "PYTHON_COMMAND=python" | ||
|
||
call python --version > nul 2>&1 | ||
if %errorlevel% equ 0 ( | ||
echo Python command check :OK | ||
) else ( | ||
echo "Error: Python command not found,please install Python(Recommended : Python 3.10 or Python 3.11) and try again." | ||
pause | ||
exit /b 1 | ||
|
||
) | ||
|
||
:check_python_version | ||
for /f "tokens=2" %%I in ('%PYTHON_COMMAND% --version 2^>^&1') do ( | ||
set "python_version=%%I" | ||
) | ||
|
||
echo Python version: %python_version% | ||
|
||
%PYTHON_COMMAND% -m venv "%~dp0env" | ||
call "%~dp0env\Scripts\activate.bat" && pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu117 | ||
call "%~dp0env\Scripts\activate.bat" && pip install -r "%~dp0requirements.txt" | ||
echo DiffusionMagic env installation completed. | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
@echo off | ||
rem Part of DiffusionMagic - Script to Start DiffusionMagic | ||
echo Starting DiffusionMagic please wait... | ||
cd %~dp0env\condabin\ | ||
call activate.bat | ||
micromamba activate %~dp0env\envs\diffusionmagic-env && python %~dp0src\app.py | ||
setlocal | ||
echo Starting DiffusionMagic... | ||
|
||
set "PYTHON_COMMAND=python" | ||
|
||
call python --version > nul 2>&1 | ||
if %errorlevel% equ 0 ( | ||
echo Python command check :OK | ||
) else ( | ||
echo "Error: Python command not found, please install Python (Recommended : Python 3.10 or Python 3.11) and try again" | ||
pause | ||
exit /b 1 | ||
|
||
) | ||
|
||
:check_python_version | ||
for /f "tokens=2" %%I in ('%PYTHON_COMMAND% --version 2^>^&1') do ( | ||
set "python_version=%%I" | ||
) | ||
|
||
echo Python version: %python_version% | ||
call "%~dp0env\Scripts\activate.bat" && %PYTHON_COMMAND% "%~dp0\src\app.py" |
Binary file not shown.