-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified .sh scripts and made shell directory to store
- Loading branch information
Showing
10 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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. | ||
# | ||
# Python-based generation | ||
# | ||
# usage: ./generate.sh experiment-name path-to-files decoders model-name sample-length | ||
# example usage: ./generate.sh umtcpc-pretrained-wavenet results/05_05_21/umtcpc_pretrained_wavenet-py "0 1 2" umtcpc 80000 | ||
|
||
#!/usr/bin/env bash | ||
|
||
DATE=`date +%d_%m_%Y` | ||
CODE=src | ||
|
||
python3.7 ${CODE}/data/run_on_files.py --batch-size 2 --checkpoint checkpoints/$1/lastmodel --output-next-to-orig --files $2 --decoders $3 --model-name $4 --sample-len $5 --sample-len 80000 --py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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. | ||
# | ||
# Generate with nvidia wavenet kernels | ||
# | ||
# usage: ./generate.sh experiment-name path-to-files decoders model-name | ||
# example usage: ./generate.sh umtcpc-pretrained-wavenet results/05_05_21/umtcpc_pretrained_wavenet "0 1 2" umtcpc | ||
|
||
#!/usr/bin/env bash | ||
|
||
DATE=`date +%d_%m_%Y` | ||
CODE=src | ||
|
||
python3.7 ${CODE}/data/run_on_files.py --batch-size 2 --checkpoint checkpoints/$1/lastmodel --output-next-to-orig --files $2 --decoders $3 --model-name $4 --sample-len 80000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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. | ||
# | ||
#!/usr/bin/env bash | ||
|
||
DATE=`date +%d_%m_%Y` | ||
CODE=src | ||
OUTPUT=results/${DATE}/$1 | ||
|
||
python3.7 ${CODE}/inference.py --model-name $3 --data-from-args checkpoints/$1/args.pth --output-sampled ${OUTPUT} -n 2 \ | ||
--files ${OUTPUT} --batch-size 2 --checkpoint checkpoints/$1/lastmodel --output-next-to-orig --decoders $2 --sample-len 80000 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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. | ||
# | ||
#!/usr/bin/env bash | ||
|
||
DATE=`date +%d_%m_%Y` | ||
CODE=src | ||
OUTPUT=results/${DATE}/$1 | ||
|
||
python3.7 ${CODE}/data/data_samples.py \ | ||
--data data/musicnet/preprocessed/Solo_Cello \ | ||
data/musicnet/preprocessed/Solo_Violin \ | ||
data/musicnet/preprocessed/Beethoven_Solo_Piano \ | ||
--output-sampled ${OUTPUT} -n 2 | ||
|
||
echo "Finished writing samples to ${OUTPUT}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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. | ||
# | ||
#!/usr/bin/env bash | ||
|
||
DATE=`date +%d_%m_%Y` | ||
CODE=src | ||
OUTPUT=results/${DATE}/$1 | ||
|
||
python3.7 ${CODE}/data/data_samples.py --data-from-args checkpoints/$1/args.pth --output-sampled ${OUTPUT} -n 2 | ||
|
||
echo "Finished writing samples to ${OUTPUT}" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters