summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-26 23:42:38 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-26 23:42:38 +0200
commitd0a5ce1b28a1ec32249a59e2ec6cb54f0b99dabd (patch)
treefad3d24570c1799daf15efa6dd271845b488b92b
parenta806162453068fea6305a4a78b1719d505acbb86 (diff)
wah
-rw-r--r--docs/HOLLY SINGING.md53
-rw-r--r--docs/HOLLY SPEAKING.md55
-rw-r--r--scripts/extract_acoustic_feature.py2
3 files changed, 109 insertions, 1 deletions
diff --git a/docs/HOLLY SINGING.md b/docs/HOLLY SINGING.md
new file mode 100644
index 0000000..7056d1e
--- /dev/null
+++ b/docs/HOLLY SINGING.md
@@ -0,0 +1,53 @@
+# BUILD FEATURES
+
+PYTHONPATH=`pwd` python scripts/extract_acoustic_feature.py \
+ --input1_directory './data/singing-44100/wav/holly' \
+ --input2_directory './data/singing-44100/wav/mat' \
+ --output1_directory './data/singing-44100/feat/holly' \
+ --output2_directory './data/singing-44100/feat/mat'
+
+# TRAIN CONVERSION NETWORK
+
+/home/spawn/.virtualenv/yukarin/bin/python train.py \
+ ./holly_2_mat_singing_conv.json \
+ ./data/singing-44100/net/singing_mat_2_holly
+
+# TEST CONVERSION NETWORK
+
+PYTHONPATH=`pwd` /home/spawn/.virtualenv/yukarin/bin/python scripts/voice_conversion_test.py \
+ --model_directory ./data/singing-44100/net/ \
+ --input_wave_directory ./data/singing-44100/wav/mat/ \
+ --gpu 0 \
+ singing_mat_2_holly
+
+# EXTRACT SPECTROGRAMS
+
+mkdir -p ./data/singing-44100/net_sr/
+mkdir ./data/singing-44100/spec/holly/
+
+PYTHONPATH=`pwd` python scripts/extract_spectrogram_pair.py \
+ --input_directory './data/singing-44100/wav/holly/' \
+ --output_directory './data/singing-44100/spec/holly/'
+
+# TRAIN SUPER RESOLUTION
+
+/home/spawn/.virtualenv/yukarin/bin/python train_sr.py \
+ ./holly_singing_sr.json \
+ ./data/singing-44100/net_sr/holly/
+
+# TEST SUPER RESOLUTION
+
+/home/spawn/.virtualenv/yukarin/bin/python ./scripts/super_resolution_test.py \
+ --model_directory ./data/singing-44100/net_sr/ \
+ --input_wave_directory ./data/singing-44100/wav/holly/ \
+ --gpu 0 \
+ holly
+
+# VOICE TRANSFORM
+
+PYTHONPATH=`pwd` /home/spawn/.virtualenv/yukarin/bin/python scripts/process.py \
+ --conv_model_directory ./data/singing-44100/net/singing_mat_2_holly/ \
+ --sr_model_directory ./data/singing-44100/net_sr/holly/ \
+ --input_directory ./test_data \
+ --output_directory ./output \
+ --gpu 0
diff --git a/docs/HOLLY SPEAKING.md b/docs/HOLLY SPEAKING.md
new file mode 100644
index 0000000..404ce42
--- /dev/null
+++ b/docs/HOLLY SPEAKING.md
@@ -0,0 +1,55 @@
+# HOLLY SPEAKING
+
+# BUILD FEATURES
+
+PYTHONPATH=`pwd` python scripts/extract_acoustic_feature.py \
+ --input1_directory './data/speaking-44100/wav/holly' \
+ --input2_directory './data/speaking-44100/wav/mat' \
+ --output1_directory './data/speaking-44100/feat/holly' \
+ --output2_directory './data/speaking-44100/feat/mat'
+
+# TRAIN CONVERSION NETWORK
+
+/home/spawn/.virtualenv/yukarin/bin/python train.py \
+ ./holly_2_mat_speaking_conv.json \
+ ./data/speaking-44100/net/speaking_mat_2_holly
+
+# TEST CONVERSION NETWORK
+
+PYTHONPATH=`pwd` /home/spawn/.virtualenv/yukarin/bin/python scripts/voice_conversion_test.py \
+ --model_directory ./data/speaking-44100/net/ \
+ --input_wave_directory ./data/speaking-44100/wav/mat/ \
+ --gpu 0 \
+ speaking_mat_2_holly
+
+# EXTRACT SPECTROGRAMS
+
+mkdir -p ./data/speaking-44100/net_sr/
+mkdir ./data/speaking-44100/spec/holly/
+
+PYTHONPATH=`pwd` python scripts/extract_spectrogram_pair.py \
+ --input_directory './data/speaking-44100/wav/holly/' \
+ --output_directory './data/speaking-44100/spec/holly/'
+
+# TRAIN SUPER RESOLUTION
+
+/home/spawn/.virtualenv/yukarin/bin/python train_sr.py \
+ ./holly_speaking_sr.json \
+ ./data/speaking-44100/net_sr/holly/
+
+# TEST SUPER RESOLUTION
+
+/home/spawn/.virtualenv/yukarin/bin/python ./scripts/super_resolution_test.py \
+ --model_directory ./data/speaking-44100/net_sr/ \
+ --input_wave_directory ./data/speaking-44100/wav/holly/ \
+ --gpu 0 \
+ holly
+
+# VOICE TRANSFORM
+
+PYTHONPATH=`pwd` /home/spawn/.virtualenv/yukarin/bin/python scripts/process.py \
+ --conv_model_directory ./data/speaking-44100/net/speaking_mat_2_holly/ \
+ --sr_model_directory ./data/speaking-44100/net_sr/holly/ \
+ --input_directory ./test_data \
+ --output_directory ./output \
+ --gpu 0
diff --git a/scripts/extract_acoustic_feature.py b/scripts/extract_acoustic_feature.py
index c2c9b91..cfe927a 100644
--- a/scripts/extract_acoustic_feature.py
+++ b/scripts/extract_acoustic_feature.py
@@ -196,7 +196,7 @@ def main():
arguments.output2_directory.mkdir(exist_ok=True)
pool = multiprocessing.Pool()
- pool.starmap(generate_feature, zip(paths1, paths2), chunksize=16)
+ pool.starmap(generate_feature, zip(paths1, paths2), chunksize=8)
generate_mean_var(arguments.output1_directory)
generate_mean_var(arguments.output2_directory)