|
|
|
|
|
|
|
|
|
|
|
|
| FROM python:3.12-slim-bookworm
|
|
|
| ENV DEBIAN_FRONTEND=noninteractive \
|
| PYTHONUNBUFFERED=1 \
|
| PIP_NO_CACHE_DIR=1 \
|
| HF_HOME=/tmp/hf \
|
| PORT=7860
|
|
|
| RUN apt-get update && apt-get install -y --no-install-recommends \
|
| build-essential git curl unzip ffmpeg libsndfile1 \
|
| && rm -rf /var/lib/apt/lists/*
|
|
|
| WORKDIR /app
|
|
|
|
|
| RUN pip install --upgrade pip \
|
| && pip install --index-url https://download.pytorch.org/whl/cu128 \
|
| torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0
|
|
|
|
|
| RUN pip install \
|
| "einops>=0.8.1" \
|
| "hydra-core>=1.3.2" \
|
| "lightning>=2.5.6" \
|
| "timm>=1.0.22" \
|
| "torchdiffeq>=0.2.5" \
|
| "transformers>=4.57.2" \
|
| "pydantic>=2.12.4" \
|
| "omegaconf>=2.3.0" \
|
| "av>=16.1.0" \
|
| "requests" \
|
| "soundfile>=0.13.1" \
|
| "gradio>=6.9.0" \
|
| && pip install --no-deps "hear21passt==0.0.26" \
|
| && pip install --no-deps "git+https://github.com/SonyResearch/Woosh.git@main"
|
|
|
|
|
|
|
|
|
| RUN set -eux; cd /app; \
|
| for A in Woosh-DFlow Woosh-AE TextConditionerA; do \
|
| echo "Downloading $A.zip ..."; \
|
| curl -fL --retry 3 -o "$A.zip" \
|
| "https://github.com/SonyResearch/Woosh/releases/download/v1.0.0/$A.zip"; \
|
| unzip -q "$A.zip" -d /app; \
|
| rm -f "$A.zip"; \
|
| done; \
|
| ls -R /app/checkpoints | head -n 60
|
|
|
| COPY app.py /app/app.py
|
|
|
| EXPOSE 7860
|
| CMD ["python", "app.py"]
|
|
|