You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:/Users/최현석/OneDrive/바탕 화면/AdaSpeech-master/AdaSpeech-master/nvidia_preprocessing.py", line 96, in
hp = HParam(args.config)
File "c:\Users\최현석\OneDrive\바탕 화면\AdaSpeech-master\AdaSpeech-master\utils\hparams.py", line 58, in init
hp_dict = load_hparam(file)
File "c:\Users\최현석\OneDrive\바탕 화면\AdaSpeech-master\AdaSpeech-master\utils\hparams.py", line 16, in load_hparam
stream = open(filename)
My code is here.
line96 (( hp = HParam(args.config) ))
if name == "main":
parser = argparse.ArgumentParser()
parser.add_argument(
"-d", "--data_path", type=str, help="root directory of wav files"
)
parser.add_argument(
"-c", "--config", type=str, help="yaml file for configuration"
)
args = parser.parse_args()
hp = HParam(args.config)
main(args, hp)
line 16 (( stream = open(filename, "r") ))
def load_hparam(filename):
stream = open(filename, "r")
docs = yaml.load_all(stream, Loader=yaml.Loader)
hparam_dict = dict()
for doc in docs:
for k, v in doc.items():
hparam_dict[k] = v
return hparam_dict
line 58 (( hp_dict = load_hparam(file) ))
class HParam(Dotdict):
def init(self, file):
super(Dotdict, self).init()
hp_dict = load_hparam(file)
hp_dotdict = Dotdict(hp_dict)
for k, v in hp_dotdict.items():
setattr(self, k, v)
Traceback (most recent call last):
File "c:/Users/최현석/OneDrive/바탕 화면/AdaSpeech-master/AdaSpeech-master/nvidia_preprocessing.py", line 96, in
hp = HParam(args.config)
File "c:\Users\최현석\OneDrive\바탕 화면\AdaSpeech-master\AdaSpeech-master\utils\hparams.py", line 58, in init
hp_dict = load_hparam(file)
File "c:\Users\최현석\OneDrive\바탕 화면\AdaSpeech-master\AdaSpeech-master\utils\hparams.py", line 16, in load_hparam
stream = open(filename)
My code is here.
if name == "main":
parser = argparse.ArgumentParser()
parser.add_argument(
"-d", "--data_path", type=str, help="root directory of wav files"
)
parser.add_argument(
"-c", "--config", type=str, help="yaml file for configuration"
)
args = parser.parse_args()
def load_hparam(filename):
stream = open(filename, "r")
docs = yaml.load_all(stream, Loader=yaml.Loader)
hparam_dict = dict()
for doc in docs:
for k, v in doc.items():
hparam_dict[k] = v
return hparam_dict
class HParam(Dotdict):
def init(self, file):
super(Dotdict, self).init()
hp_dict = load_hparam(file)
hp_dotdict = Dotdict(hp_dict)
for k, v in hp_dotdict.items():
setattr(self, k, v)
How can I solve this problem?
The text was updated successfully, but these errors were encountered: