hero-intelligent commited on
Commit
bb4f912
·
1 Parent(s): bfbddd2

Create installation.py

Browse files
Files changed (1) hide show
  1. installation.py +26 -0
installation.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ os.system("pip install gradio")
3
+
4
+ import gradio as gr
5
+ from pathlib import Path
6
+ os.system("pip install gsutil")
7
+
8
+
9
+ os.system("git clone --branch=main https://github.com/google-research/t5x")
10
+ os.system("mv t5x t5x_tmp; mv t5x_tmp/* .; rm -r t5x_tmp")
11
+ os.system("sed -i 's:jax\[tpu\]:jax:' setup.py")
12
+ os.system("python3 -m pip install -e .")
13
+ os.system("python3 -m pip install --upgrade pip")
14
+
15
+
16
+
17
+ # install mt3
18
+ os.system("git clone --branch=main https://github.com/magenta/mt3")
19
+ os.system("mv mt3 mt3_tmp; mv mt3_tmp/* .; rm -r mt3_tmp")
20
+ os.system("python3 -m pip install -e .")
21
+ os.system("pip install tensorflow_cpu")
22
+ # copy checkpoints
23
+ os.system("gsutil -q -m cp -r gs://mt3/checkpoints .")
24
+
25
+ # copy soundfont (originally from https://sites.google.com/site/soundfonts4u)
26
+ os.system("gsutil -q -m cp gs://magentadata/soundfonts/SGM-v2.01-Sal-Guit-Bass-V1.3.sf2 .")