Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prophesier committed Nov 22, 2022
1 parent 060cff0 commit dd1dfe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion infer_tools/infer_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_pitch(wav, mel):

def get_align(mel, phone_encoded):
mel2ph = np.zeros([mel.shape[0]], int)
start_frame = 1
start_frame = 0
ph_durs = mel.shape[0] / phone_encoded.shape[0]
if hparams['debug']:
print(mel.shape, phone_encoded.shape, mel.shape[0] / phone_encoded.shape[0])
Expand Down
12 changes: 3 additions & 9 deletions preprocessing/process_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
'''
file -> temporary_dict -> processed_input -> batch
'''
from webbrowser import get
from utils.hparams import hparams
from network.vocoders.base_vocoder import VOCODERS
import numpy as np
import traceback
import librosa
import os
import soundfile as sf
from pathlib import Path
from preprocessing.data_gen_utils import get_pitch_parselmouth,get_pitch_crepe
from preprocessing.base_binarizer import BinarizationError
from .data_gen_utils import get_pitch_parselmouth,get_pitch_crepe
from .base_binarizer import BinarizationError
import torch
import utils
import parselmouth
from network.vocoders.base_vocoder import get_vocoder_cls

class File2Batch:
'''
Expand Down Expand Up @@ -100,7 +94,7 @@ def get_pitch(wav, mel):

def get_align(meta_data, mel, phone_encoded, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
mel2ph = np.zeros([mel.shape[0]], int)
start_frame=1
start_frame=0
ph_durs = mel.shape[0]/phone_encoded.shape[0]
if hparams['debug']:
print(mel.shape,phone_encoded.shape,mel.shape[0]/phone_encoded.shape[0])
Expand Down

0 comments on commit dd1dfe7

Please sign in to comment.