Repository navigation
Expand file tree
/
Copy pathsetup.bat
More file actions
102 lines (94 loc) Β· 4.64 KB
/
Copy pathsetup.bat
File metadata and controls
102 lines (94 loc) Β· 4.64 KB
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
@echo off
REM βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
REM AniFlow β One-Command Setup for Windows
REM Run this after cloning the repository:
REM setup.bat
REM βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
echo.
echo βββββββββββββββββββββββββββββββββββββββββββββββββ
echo β AniFlow Setup Script β
echo βββββββββββββββββββββββββββββββββββββββββββββββββ
echo.
REM βββ 1. Check Python βββββββββββββββββββββββββββββββββββββββββββ
echo [1/5] Checking Python...
python --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo β Python not found. Install from https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH" during installation.
pause
exit /b 1
)
for /f "tokens=2" %%i in ('python --version 2^>^&1') do set PY_VERSION=%%i
echo β
Python %PY_VERSION%
REM βββ 2. Check FFmpeg βββββββββββββββββββββββββββββββββββββββββββ
echo [2/5] Checking FFmpeg...
ffmpeg -version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo β FFmpeg not found.
echo Download from https://ffmpeg.org/download.html
echo Or install with: winget install FFmpeg
pause
exit /b 1
)
echo β
FFmpeg found
REM βββ 3. Create Virtual Environment ββββββββββββββββββββββββββββ
echo [3/5] Setting up Python virtual environment...
if exist "venv" (
echo β
Virtual environment already exists
) else (
echo π¦ Creating virtual environment...
python -m venv venv
echo β
Virtual environment created
)
call venv\Scripts\activate.bat
REM βββ 4. Install Dependencies ββββββββββββββββββββββββββββββββββ
echo [4/5] Installing Python dependencies...
echo (This may take 10-20 minutes on first run β PyTorch is large)
pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
echo β
Dependencies installed
REM βββ 5. Setup .env File βββββββββββββββββββββββββββββββββββββββ
echo [5/5] Setting up configuration...
if not exist ".env" (
copy .env.example .env >nul
echo β
Created .env from template
echo π Edit .env to add API keys (optional)
) else (
echo β
.env already exists
)
REM βββ Create directories βββββββββββββββββββββββββββββββββββββββ
if not exist "input\raw_manhwa" mkdir "input\raw_manhwa"
if not exist "output" mkdir "output"
if not exist "temp" mkdir "temp"
if not exist "casts" mkdir "casts"
if not exist "projects" mkdir "projects"
if not exist "assets\bgm" mkdir "assets\bgm"
if not exist "assets\watermarks" mkdir "assets\watermarks"
if not exist "assets\backgrounds" mkdir "assets\backgrounds"
if not exist "assets\intros" mkdir "assets\intros"
if not exist "assets\outros" mkdir "assets\outros"
if not exist "manhwa_download" mkdir "manhwa_download"
if not exist "manhwa_stitch" mkdir "manhwa_stitch"
if not exist "manhwa_detect" mkdir "manhwa_detect"
if not exist "manhwa_crop" mkdir "manhwa_crop"
if not exist "manhwa_text" mkdir "manhwa_text"
if not exist "manhwa_audio" mkdir "manhwa_audio"
if not exist "manhwa_clips" mkdir "manhwa_clips"
echo.
echo βββββββββββββββββββββββββββββββββββββββββββββββββ
echo β β
Setup Complete! β
echo βββββββββββββββββββββββββββββββββββββββββββββββββ
echo.
echo Start AniFlow:
echo venv\Scripts\activate
echo python app.py
echo.
echo Then open http://localhost:8080 in your browser.
echo.
echo Optional:
echo * Edit .env to add Gemini/Claude/ElevenLabs API keys
echo * Install Ollama from https://ollama.com
echo * Run: ollama pull qwen2.5vl:3b
echo * Run: ollama pull qwen2.5:14b
echo.
pause