-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dockerfiles and github actions workflow to publish for both CPU…
… and GPU with arm64 and amd64 architecture
- Loading branch information
Showing
4 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.11-slim | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update; apt-get install -y ffmpeg | ||
RUN python -m pip install --upgrade pip | ||
|
||
RUN --mount=type=cache,target=/root/.cache \ | ||
pip install "audio-separator[cpu]" | ||
|
||
# Run audio-separator when the container launches | ||
ENTRYPOINT ["audio-separator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM nvidia/cuda:11.8.0-base-ubuntu22.04 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
ffmpeg \ | ||
python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN python -m pip install --upgrade pip | ||
|
||
# Install the GPU version of audio-separator | ||
RUN --mount=type=cache,target=/root/.cache \ | ||
pip install "audio-separator[gpu]" | ||
|
||
# Run audio-separator when the container launches | ||
ENTRYPOINT ["audio-separator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "audio-separator" | ||
version = "0.9.4" | ||
version = "0.9.5" | ||
description = "Easy to use vocal separation on CLI or as a python package, using the amazing MDX-Net models from UVR trained by @Anjok07" | ||
authors = ["Andrew Beveridge <[email protected]>"] | ||
license = "MIT" | ||
|