Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

remove basicConfig in module #189

Open
wants to merge 1 commit into
base: 4.1-Stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from modules.commons import sequence_mask

MATPLOTLIB_FLAG = False

logging.basicConfig(stream=sys.stdout, level=logging.WARN)
logger = logging

f0_bin = 256
Expand Down Expand Up @@ -440,4 +438,4 @@ def extract(self, audio): # audio: 2d tensor array
audio2 = torch.nn.functional.pad(audio2, (int(self.hop_size // 2), int((self.hop_size + 1) // 2)), mode = 'reflect')
volume = torch.FloatTensor([torch.mean(audio2[:,int(n * self.hop_size) : int((n + 1) * self.hop_size)]) for n in range(n_frames)])
volume = torch.sqrt(volume)
return volume
return volume