Skip to content

Instantly share code, notes, and snippets.

View demo_kernel_kmeans.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tam17aki
tam17aki / kernel_kmeans.py
Last active April 7, 2023 07:33 — forked from mblondel/kernel_kmeans.py
Kernel K-means.
View kernel_kmeans.py
# -*- coding: utf-8 -*-
"""Clustering with Kernel K-means."""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Author: Akira Tamamori
# License: BSD 3 clause
import matplotlib.pyplot as plt
import numpy as np
from sklearn.base import BaseEstimator, ClusterMixin
@tam17aki
tam17aki / diffusion_model_book_2_2_score_based_model.ipynb
Last active March 6, 2023 15:45
diffusion_model_book_2_2_score_based_model.ipynb
View diffusion_model_book_2_2_score_based_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View config_gdrive.yaml
# -*- coding: utf-8 -*-
# Configuration for Benzaiten Starter Kit ver. 1.0
# Copyright (C) 2022 by Akira TAMAMORI
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
View psgui_record_anasyn.py
"""PySimpleGUIにより音声を録音し、音声の分析合成を実施する.
波形とスペクトログラムもプロット可能.
"""
import queue
import sys
import threading
import time
import librosa # 音声分析のライブラリ
import matplotlib.pyplot as plt # グラフ描画のライブラリ
View pysimplegui_anasyn_recog.py
"""PySimpleGUIにより音声を録音し、音声の分析合成を実施する.
波形とスペクトログラムもプロット可能.
"""
import librosa # 音声分析のライブラリ
import matplotlib.pyplot as plt # グラフ描画のライブラリ
import numpy as np
import PySimpleGUI as sg # GUI構築のライブラリ
import pysptk # 音声分析合成のライブラリ
import sounddevice as sd # 録音・再生系のライブラリ
import soundfile as sf # 読み込み・書き出しのライブラリ
@tam17aki
tam17aki / training_sfe3.py
Created November 22, 2022 12:25
Training script for Sinusoidal Frequency Estimation by Gradient Descent
View training_sfe3.py
# -*- coding: utf-8 -*-
"""Training script for Sinusoidal Frequency Estimation by Gradient Descent.
Copyright (C) 2022 by Akira TAMAMORI
Copyright (C) 2022 by @xiao_ming
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View training_sfe5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View training_sfe4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sfe_config2.yaml
SFE:
root_dir: "/work/tamamori/oscillator/"
data_dir: "data/"
feature:
sample_rate: 16000 # サンプリング周波数
frame_length: 1024 # 分析窓長
hop_length: 512 # ホップ長
model: