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
cd ~/Desktop/nnmnkwii_gallery | |
python ./scripts/prepare_features.py ./data/NIT-ATR503/ --use_phone_alignment --question_path="./data/questions_jp.hed" |
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
#!/bin/bash | |
set -e | |
script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd) | |
data_root=$script_dir/../data | |
cd $data_root | |
HTS_DEMO_ROOT=$1 |
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
"""GMM-based voice conversion""" | |
from nnmnkwii.datasets import FileSourceDataset | |
from nnmnkwii.datasets.cmu_arctic import CMUArcticWavFileDataSource | |
from nnmnkwii.preprocessing.alignment import DTWAligner | |
from nnmnkwii.util import apply_each2d_trim | |
from nnmnkwii.preprocessing import remove_zeros_frames, delta_features | |
from nnmnkwii.metrics import melcd | |
from nnmnkwii.baseline.gmm import MLPG |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import scipy.sparse | |
import numpy as np | |
# From my previous code | |
def __construct_weight_matrix(T, D): | |
# Construct Weight matrix W | |
# Eq.(25) ~ (28) | |
tmp = np.zeros(D) |
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
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_QT=ON -DWITH_OPENGL=ON -DOPENCV_EXTRA_MODULES_PATH=$HOME/opencv_contrib/modules -DENABLE_AVX=ON -DENABLE_AVX2=ON -DENABLE_SSE41=ON -DENABLE_SSE42=ON -DBUILD_EXAMPLES=OFF -DBUILD_opencv_apps=OFF -DBUILD_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DBUIDL_opencv_python3=ON -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DENABLE_SSSE3=ON -DWITH_OPENMP=ON -DPYTHON3_EXECUTABLE=~/anaconda3/bin/python -DWITH_CUDA=ON -DWITH_CUBLAS=ON -DWITH_CUFFT=ON -DCUDA_ARCH_BIN="6.1" -DCUDA_FAST_MATH=ON -DCMAKE_INSTALL_PREFIX=$(~/anaconda3/bin/python -c "import sys; print(sys.prefix)") .. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@time using PCLCommon,PCLVisualization,PCLIO,PCLFilters,Cxx | |
@time using CVCore, CVHighGUI, CVImgProc | |
# IR camera parameters of Kinect v2 | |
fx = 365.1177 | |
fy = 365.1177 | |
cx = 256.0793 + 74 | |
cy = 204.4635 + 100 | |
function getDepthFromPointCloud!(depth, cloud) |