Update requirements.txt for Python 3.12+ compatibility
Updated all package versions to be compatible with Python 3.12 and 3.13: Core Dependencies: - torch>=2.2.0 (was 2.0.0) - torchvision>=0.17.0 (was 0.15.0) - torchaudio>=2.2.0 (was 2.0.0) - diffusers>=0.32.0 (was 0.30.0) - transformers>=4.40.0 (was 4.35.0) - accelerate>=0.27.0 (was 0.24.0) - xformers>=0.0.25 (was 0.0.22) - spandrel>=0.2.0 (was 0.1.0) - ftfy>=6.2.0 (was 6.1.0) - Pillow>=10.2.0 (was 10.0.0) - safetensors>=0.4.2 (was 0.4.0) - huggingface-hub>=0.23.0 (was 0.19.0) - peft>=0.10.0 (was 0.7.0) - numpy>=1.26.0 (added for Python 3.12+ compatibility) Audio Dependencies: - scipy>=1.12.0 (was 1.11.0) - librosa>=0.10.2 (was 0.10.0) - edge-tts>=6.1.10 (was 6.1.0) Web Interface: - flask>=3.0.2 (was 3.0.0) - flask-socketio>=5.3.6 (was 5.3.0) - eventlet>=0.36.0 (was 0.33.0) - python-socketio>=5.11.0 (was 5.10.0) - werkzeug>=3.0.1 (was 3.0.0) Added detailed installation notes for Python 3.12+ including: - PyTorch nightly installation for CUDA - xformers --pre flag for Python 3.13 - Git installation for diffusers/transformers - Quick install commands
Showing
| # VideoGen - Universal Video Generation Toolkit | ||
| # Copyleft © 2026 Stefy <stefy@nexlab.net> | ||
| # Compatible with Python 3.12+ | ||
| # Core Dependencies (Required) | ||
| torch>=2.0.0 | ||
| torchvision>=0.15.0 | ||
| torchaudio>=2.0.0 | ||
| diffusers>=0.30.0 | ||
| transformers>=4.35.0 | ||
| accelerate>=0.24.0 | ||
| xformers>=0.0.22 | ||
| spandrel>=0.1.0 | ||
| torch>=2.2.0 | ||
| torchvision>=0.17.0 | ||
| torchaudio>=2.2.0 | ||
| diffusers>=0.32.0 | ||
| transformers>=4.40.0 | ||
| accelerate>=0.27.0 | ||
| xformers>=0.0.25 # May need --pre flag for Python 3.13 | ||
| spandrel>=0.2.0 | ||
| psutil>=5.9.0 | ||
| ffmpeg-python>=0.2.0 | ||
| ftfy>=6.1.0 | ||
| Pillow>=10.0.0 | ||
| safetensors>=0.4.0 | ||
| huggingface-hub>=0.19.0 | ||
| peft>=0.7.0 # Required for LoRA adapter loading | ||
| ftfy>=6.2.0 | ||
| Pillow>=10.2.0 | ||
| safetensors>=0.4.2 | ||
| huggingface-hub>=0.23.0 | ||
| peft>=0.10.0 # Required for LoRA adapter loading | ||
| numpy>=1.26.0 # Python 3.12+ compatible | ||
| # Audio Dependencies (Optional - for TTS and music generation) | ||
| scipy>=1.11.0 | ||
| soundfile>=0.12.0 | ||
| librosa>=0.10.0 | ||
| edge-tts>=6.1.0 | ||
| scipy>=1.12.0 | ||
| soundfile>=0.12.1 | ||
| librosa>=0.10.2 | ||
| edge-tts>=6.1.10 | ||
| # bark # Install with: pip install git+https://github.com/suno-ai/bark.git | ||
| # audiocraft # Install with: pip install audiocraft | ||
| ... | ... | @@ -32,39 +34,79 @@ openai-whisper>=20231117 # For transcription |
| # Translation uses transformers (already listed above) with MarianMT models | ||
| # Lip Sync Dependencies (Optional) | ||
| opencv-python>=4.8.0 | ||
| face-recognition>=1.14.0 | ||
| opencv-python>=4.9.0 | ||
| # face-recognition # Requires dlib which may have issues on Python 3.13 | ||
| # dlib # Install with: pip install dlib (requires cmake) | ||
| # Character Consistency Dependencies (Optional - for IP-Adapter, InstantID) | ||
| # insightface>=0.7.3 # Install with: pip install insightface | ||
| # onnxruntime-gpu>=1.16.0 # Required for insightface GPU acceleration | ||
| # or onnxruntime>=1.16.0 # CPU only | ||
| # onnxruntime-gpu>=1.17.0 # Required for insightface GPU acceleration | ||
| # or onnxruntime>=1.17.0 # CPU only | ||
| # Model Management | ||
| requests>=2.31.0 | ||
| urllib3>=2.0.0 | ||
| urllib3>=2.2.0 | ||
| # Progress and UI | ||
| tqdm>=4.66.0 | ||
| rich>=13.0.0 | ||
| rich>=13.7.0 | ||
| # Configuration | ||
| pydantic>=2.0.0 | ||
| pydantic>=2.6.0 | ||
| # Distributed Processing | ||
| # accelerate # Already listed above | ||
| # Web Interface Dependencies (Optional - for webapp.py) | ||
| flask>=3.0.0 | ||
| flask>=3.0.2 | ||
| flask-cors>=4.0.0 | ||
| flask-socketio>=5.3.0 | ||
| eventlet>=0.33.0 | ||
| python-socketio>=5.10.0 | ||
| werkzeug>=3.0.0 | ||
| flask-socketio>=5.3.6 | ||
| eventlet>=0.36.0 | ||
| python-socketio>=5.11.0 | ||
| werkzeug>=3.0.1 | ||
| # MCP Server Dependencies (Optional - for AI agent integration) | ||
| # mcp>=0.9.0 # Install with: pip install mcp | ||
| # mcp>=1.0.0 # Install with: pip install mcp | ||
| # Optional: NSFW Classification | ||
| # onnxruntime>=1.16.0 | ||
| \ No newline at end of file | ||
| # onnxruntime>=1.17.0 | ||
| # ============================================================================ | ||
| # INSTALLATION NOTES FOR PYTHON 3.12+ | ||
| # ============================================================================ | ||
| # | ||
| # For Python 3.12+, some packages may require specific installation methods: | ||
| # | ||
| # 1. PyTorch (with CUDA support): | ||
| # pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121 | ||
| # | ||
| # 2. xformers (may need --pre for Python 3.13): | ||
| # pip install --pre xformers | ||
| # | ||
| # 3. diffusers (latest from git for newest features): | ||
| # pip install git+https://github.com/huggingface/diffusers.git | ||
| # | ||
| # 4. transformers (latest from git for newest models): | ||
| # pip install git+https://github.com/huggingface/transformers.git | ||
| # | ||
| # 5. For face-recognition (requires dlib): | ||
| # - On Ubuntu/Debian: sudo apt-get install cmake | ||
| # - pip install dlib | ||
| # - pip install face-recognition | ||
| # | ||
| # 6. For audiocraft (MusicGen): | ||
| # pip install audiocraft | ||
| # | ||
| # 7. For bark (TTS): | ||
| # pip install git+https://github.com/suno-ai/bark.git | ||
| # | ||
| # ============================================================================ | ||
| # QUICK INSTALL (Python 3.12+) | ||
| # ============================================================================ | ||
| # | ||
| # pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121 | ||
| # pip install --pre xformers | ||
| # pip install git+https://github.com/huggingface/diffusers.git | ||
| # pip install git+https://github.com/huggingface/transformers.git | ||
| # pip install -r requirements.txt --break-system-packages | ||
| # | ||
| \ No newline at end of file |
Please
register
or
sign in
to comment