hugo flores garcia commited on
Commit
558d640
·
1 Parent(s): cd84ee3

add unloop instructions

Browse files
Files changed (2) hide show
  1. DEFAULT_MODEL +1 -1
  2. README.md +34 -9
DEFAULT_MODEL CHANGED
@@ -1 +1 @@
1
- percussion
 
1
+ default
README.md CHANGED
@@ -13,15 +13,9 @@ license: cc-by-nc-4.0
13
 
14
  # VampNet
15
 
16
- This repository contains recipes for training generative music models on top of the Descript Audio Codec.
17
 
18
- # Setting up
19
-
20
- **Requires Python 3.9**.
21
-
22
- you'll need a Python 3.9 environment to run VampNet. This is due to a [known issue with madmom](https://github.com/hugofloresgarcia/vampnet/issues/15).
23
-
24
- (for example, using conda)
25
  ```bash
26
  conda create -n vampnet python=3.9
27
  conda activate vampnet
@@ -34,7 +28,7 @@ git clone https://github.com/hugofloresgarcia/vampnet.git
34
  pip install -e ./vampnet
35
  ```
36
 
37
- # Usage
38
 
39
  quick start!
40
  ```python
@@ -145,6 +139,37 @@ launch the c2f job:
145
  python scripts/exp/train.py --args.load conf/generated/<fine_tune_name>/c2f.yml
146
  ```
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  ## A note on argbind
149
  This repository relies on [argbind](https://github.com/pseeth/argbind) to manage CLIs and config files.
150
  Config files are stored in the `conf/` folder.
 
13
 
14
  # VampNet
15
 
16
+ ## setting up
17
 
18
+ python 3.9-3.11 works well. (for example, using conda)
 
 
 
 
 
 
19
  ```bash
20
  conda create -n vampnet python=3.9
21
  conda activate vampnet
 
28
  pip install -e ./vampnet
29
  ```
30
 
31
+ ## programmatic usage
32
 
33
  quick start!
34
  ```python
 
139
  python scripts/exp/train.py --args.load conf/generated/<fine_tune_name>/c2f.yml
140
  ```
141
 
142
+ # Unloop
143
+
144
+ Make sure you have Max installed on your laptop!
145
+
146
+ **NOTE**: To run unloop (with a GPU-powered server), you will need to install the vampnet repo in both your local machine and your GPU server.
147
+
148
+ ## start a vampnet gradio server
149
+
150
+ First, **on your GPU server**, run the gradio server:
151
+ ```bash
152
+ python app.py --args.load conf/interface.yml --Interface.device cuda
153
+ ```
154
+ This will run a vampnet gradio API on your GPU server. Copy the address. It will be something like `https://127.0.0.1:7860/`.
155
+
156
+ **IMPORTANT** Make sure that this gradio port (by default `7860`) is forwarded to your local machine, where you have Max installed.
157
+
158
+ ## start the unloop gradio client
159
+ Now, **on your local machine**, run the unloop gradio client.
160
+ ```
161
+ cd unloop
162
+ python client.py --vampnet_url https://127.0.0.1:7860/ # replace with your gradio server address
163
+ ```
164
+ This will start a gradio client that connects to the gradio server running on your GPU server.
165
+
166
+ ## start the unloop Max patch
167
+ Now, open the unloop Max patch. It's located at `unloop/max/unloop.maxpat`.
168
+
169
+ In the tape controls, check the heartbeat (`<3`) to make sure the connection to the local gradio client is working.
170
+
171
+ have fun!
172
+
173
  ## A note on argbind
174
  This repository relies on [argbind](https://github.com/pseeth/argbind) to manage CLIs and config files.
175
  Config files are stored in the `conf/` folder.