FaceSwap / requirements.txt
LogicGoInfotechSpaces's picture
Update requirements.txt
105beef verified
# Core deps
# NumPy: Let pip choose version with pre-built wheels for Python 3.13
# Older versions (1.26.x) don't have Python 3.13 wheels and compile from source (very slow)
numpy
cython # Required for BasicSR compilation
Pillow
scipy
scikit-image
tqdm
yapf
addict
future
lmdb
pyyaml
requests
httpx
gdown
opencv-python
# Torch (compatible with Python 3.11)
# CodeFormer requires PyTorch >= 1.7.1, using 2.0+ for modern Python compatibility
torch>=2.0.0
torchvision>=0.15.0
# CodeFormer/RealESRGAN deps
# BasicSR and realesrgan are installed from local directory in app.py (ensure_codeformer)
# Installing from PyPI/GitHub fails with Python 3.13 due to setup.py version detection issues
lpips
facexlib==0.2.5
# Face swap / insightface
insightface
onnx
onnxruntime-gpu # GPU support
motor # MongoDB async support
# App deps
gradio
huggingface_hub
fastapi
uvicorn
boto3
# Production server
gunicorn
# Optional but included in CodeFormer repo
# tb-nightly removed: causes slow pandas build from source on Python 3.13
# If needed, install separately: pip install tb-nightly
# pandas>=2.2.3 # Ensure pandas version with Python 3.13 wheels