Skip to content

Commit 3e1efb4

Browse files
committed
Updated windows installation scripts removed micromamba
1 parent fc1e798 commit 3e1efb4

4 files changed

Lines changed: 50 additions & 9 deletions

File tree

install.bat

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
1-
rem Part of DiffusionMagic - Script to install DiffusionMagic
2-
%~dp0tools\windows\micromamba.exe -r %~dp0env create -y -f %~dp0environment.yml
3-
echo DiffusionMagic installation completed.
1+
2+
@echo off
3+
setlocal
4+
echo Starting DiffusionMagic env installation...
5+
6+
set "PYTHON_COMMAND=python"
7+
8+
call python --version > nul 2>&1
9+
if %errorlevel% equ 0 (
10+
echo Python command check :OK
11+
) else (
12+
echo "Error: Python command not found,please install Python(Recommended : Python 3.10 or Python 3.11) and try again."
13+
pause
14+
exit /b 1
15+
16+
)
17+
18+
:check_python_version
19+
for /f "tokens=2" %%I in ('%PYTHON_COMMAND% --version 2^>^&1') do (
20+
set "python_version=%%I"
21+
)
22+
23+
echo Python version: %python_version%
24+
25+
%PYTHON_COMMAND% -m venv "%~dp0env"
26+
call "%~dp0env\Scripts\activate.bat" && pip install torch==2.0.1 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu117
27+
call "%~dp0env\Scripts\activate.bat" && pip install -r "%~dp0requirements.txt"
28+
echo DiffusionMagic env installation completed.
429
pause

src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "3.5.0"
1+
VERSION = "3.6.0"
22
STABLE_DIFFUSION_MODELS_FILE = "stable_diffusion_models.txt"
33
APP_SETTINGS_FILE = "settings.yaml"
44
CONFIG_DIRECTORY = "configs"

start.bat

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
@echo off
2-
rem Part of DiffusionMagic - Script to Start DiffusionMagic
3-
echo Starting DiffusionMagic please wait...
4-
cd %~dp0env\condabin\
5-
call activate.bat
6-
micromamba activate %~dp0env\envs\diffusionmagic-env && python %~dp0src\app.py
2+
setlocal
3+
echo Starting DiffusionMagic...
74

5+
set "PYTHON_COMMAND=python"
6+
7+
call python --version > nul 2>&1
8+
if %errorlevel% equ 0 (
9+
echo Python command check :OK
10+
) else (
11+
echo "Error: Python command not found, please install Python (Recommended : Python 3.10 or Python 3.11) and try again"
12+
pause
13+
exit /b 1
14+
15+
)
16+
17+
:check_python_version
18+
for /f "tokens=2" %%I in ('%PYTHON_COMMAND% --version 2^>^&1') do (
19+
set "python_version=%%I"
20+
)
21+
22+
echo Python version: %python_version%
23+
call "%~dp0env\Scripts\activate.bat" && %PYTHON_COMMAND% "%~dp0\src\app.py"

tools/windows/micromamba.exe

-8.08 MB
Binary file not shown.

0 commit comments

Comments
 (0)