985496146dd1ebdc3a43ac921de627c6b61b5200,audio.py,,load_wav,#,10
Before Change
def load_wav(path):
return librosa.core.load(path, sr=hparams.sample_rate)[0]
def save_wav(wav, path):
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
After Change
x = x.astype(np.float32) / signed_int16_max
if sr != hparams.sample_rate:
x = librosa.resample(x, sr, hparams.sample_rate)
x = np.clip(x, -1.0, 1.0)
return x
def save_wav(wav, path):
wav *= 32767 / max(0.01, np.max(np.abs(wav)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: r9y9/wavenet_vocoder
Commit Name: 985496146dd1ebdc3a43ac921de627c6b61b5200
Time: 2019-08-25
Author: zryuichi@gmail.com
File Name: audio.py
Class Name:
Method Name: load_wav
Project Name: tensorly/tensorly
Commit Name: f937bbf05fed3d436cd07d159b451d448fe6eba2
Time: 2021-02-06
Author: ameyer@ucla.edu
File Name: tensorly/backend/mxnet_backend.py
Class Name: MxnetBackend
Method Name: clip
Project Name: iskandr/fancyimpute
Commit Name: 47f8fe9404071e5d30ef5aea8fb96539eb0a82c3
Time: 2016-01-28
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/solver.py
Class Name: Solver
Method Name: project_result
Project Name: google-research/google-research
Commit Name: f705891da38c245857f04484ac7b771a37be7571
Time: 2021-01-08
Author: barron@google.com
File Name: jaxnerf/nerf/utils.py
Class Name:
Method Name: learning_rate_decay