Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dockerfile, updated README #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM nvidia/cuda:12.2.2-base-ubuntu22.04

RUN apt-get update

RUN apt-get install -y --no-install-recommends \
python3 python3-dev python3-pip git build-essential ffmpeg

RUN pip install ninja allin1 git+https://github.com/CPJKU/madmom
RUN pip install install natten -f https://shi-labs.com/natten/wheels/cu118/torch2.0.0/index.html
RUN pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

WORKDIR /app
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ This package provides models for music structure analysis, predicting:

## Installation

### Docker

Build the image:

```
docker build --tag=allin1:latest .
```

Run the container and mount current directory as a volume:
```
docker run -it -v .:/app allin1:latest
```

Follow steps in [Usage for CLI](#usage-for-cli) or [Usage for Python](#usage-for-python)

### 1. Install PyTorch

Visit [PyTorch](https://pytorch.org/) and install the appropriate version for your system.
Expand Down