resemble-ai / resemble-enhance

AI powered speech denoising and enhancement
https://huggingface.co/spaces/ResembleAI/resemble-enhance
MIT License
1.09k stars 103 forks source link

Docker installation possible? #12

Closed liferadioat closed 3 weeks ago

liferadioat commented 6 months ago

Hi,

is there a docker image, which you can provide for an easy installation?

Regards,

TheNymon commented 1 month ago

This Dockerfile generates an image for a container hosting the Gradio web application accessible at http://localhost:7860/

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git
RUN git clone -b main https://github.com/resemble-ai/resemble-enhance /app/resemble-enhance
WORKDIR /app/resemble-enhance
RUN pip install -e .
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]

To build the Docker image, simply execute the following command in the directory containing the Dockerfile:

docker build -t resemble-enhance .

Once the image is built, you can run it with GPU enabled using this command:

docker run -p 7860:7860 --gpus all --name resemble-enhance resemble-enhance
liferadioat commented 1 month ago

This Dockerfile generates an image for a container hosting the Gradio web application accessible at http://localhost:7860/

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git
RUN git clone -b main https://github.com/resemble-ai/resemble-enhance /app/resemble-enhance
WORKDIR /app/resemble-enhance
RUN pip install -e .
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]

To build the Docker image, simply execute the following command in the directory containing the Dockerfile:

docker build -t resemble-enhance .

Once the image is built, you can run it with GPU enabled using this command:

docker run -p 7860:7860 --gpus all --name resemble-enhance resemble-enhance

Thanks - docker run gives me: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. Is this container for cpu usage?

TheNymon commented 1 month ago

This Docker run command is intended for use with a GPU. If you remove the "--gpus all" flag from the command, it will also work for a CPU. However, please be aware that running it on a CPU may result in significantly longer processing times before any results are shown.

liferadioat commented 3 weeks ago

Thanks, got it working