forked from facebookresearch/music-translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train.sh
executable file
·35 lines (32 loc) · 841 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#!/bin/bash
set -e -x
CODE=src
DATA=musicnet/preprocessed
EXP=musicnet
export MASTER_PORT=29500
python ${CODE}/train.py \
--data ${DATA}/Bach_Solo_Cello \
${DATA}/Beethoven_Solo_Piano \
${DATA}/Cambini_Wind_Quintet \
${DATA}/Bach_Solo_Piano \
${DATA}/Beethoven_Accompanied_Violin \
${DATA}/Beethoven_String_Quartet \
--batch-size 32 \
--lr-decay 0.995 \
--epoch-len 1000 \
--num-workers 5 \
--lr 1e-3 \
--seq-len 12000 \
--d-lambda 1e-2 \
--expName ${EXP} \
--latent-d 64 \
--layers 14 \
--blocks 4 \
--data-aug \
--grad-clip 1