Prompt based instrumental music generation
1.5K
Melody Engine is a thin but practical wrapper on MagentaRT, providing:
To run Melody Engine, you would need
podman or docker installed.MagentaRT's official repository suggests a GPU with at least 40GB VRAM, but as per my limited experiments, NVIDIA RTX A5000 with 24GB VRAM works just fine.
Pull the latest image.
podman image pull docker.io/zbhavyai/melody-engine:latest
Create output and cache directories on the host
mkdir -p "$(pwd)/outputs" && mkdir -p "$HOME/.cache/melody-engine"
Run the container. This will load MagentaRT on your GPU and start a uvicorn server on port 8080.
podman container run \
--detach \
--name melody-engine \
--restart unless-stopped \
--publish 8080:8080 \
--security-opt=label=disable \
--env TF_GPU_ALLOCATOR=cuda_malloc_async \
--device=nvidia.com/gpu=all \
--volume "$(pwd)/outputs:/opt/app/outputs:rw,Z" \
--volume "$HOME/.cache/melody-engine:/magenta-realtime/cache:rw,Z" \
docker.io/zbhavyai/melody-engine:latest
Access the web interface at localhost:8080 or explore the API documentation at localhost:8080/docs.
Generated audio files are saved locally in the outputs directory, or can be downloaded from the web interface or REST API.
The source code is here: zbhavyai/melody-engine. Please star the repository if you come across it ⭐
You may also choose to sponsor it here if you would like to show your support 🤜🤛
Content type
Image
Digest
sha256:b4318cf38…
Size
7.2 GB
Last updated
9 months ago
docker pull zbhavyai/melody-engine