Skip to content

Commit

Permalink
numpy.load
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Jun 12, 2019
1 parent b5fd5da commit c3a9576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions become_yukarin/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from typing import Callable
from typing import Dict
from typing import List
import scipy.ndimage

import chainer
import librosa
import numpy
import pysptk
import pyworld
import scipy.ndimage

from ..config.config import DatasetConfig
from ..config.sr_config import SRDatasetConfig
Expand Down Expand Up @@ -180,7 +180,7 @@ def __init__(self, validate=False) -> None:
self._validate = validate

def __call__(self, path: Path, test=None):
d = numpy.load(path.expanduser()).item() # type: dict
d: Dict[str, Any] = numpy.load(path.expanduser(), allow_pickle=True).item()
feature = AcousticFeature(
f0=d['f0'],
spectrogram=d['spectrogram'],
Expand All @@ -198,7 +198,7 @@ def __init__(self, validate=False) -> None:
self._validate = validate

def __call__(self, path: Path, test=None):
d = numpy.load(path.expanduser()).item() # type: dict
d: Dict[str, Any] = numpy.load(path.expanduser(), allow_pickle=True).item()
feature = LowHighSpectrogramFeature(
low=d['low'],
high=d['high'],
Expand Down

0 comments on commit c3a9576

Please sign in to comment.