Skip to content

KeyError: "state_dict" for every waveglow model I've tried #37

@lachjames

Description

@lachjames

Hi :)

I've successfully trained a flowtron model and I'm now trying to use it for inference with inference.py. I've tried a few different waveglow versions (v5 in the waveglow repo, v3 from the nvidia NGC catalog), both with and without running convert_model.py on them, and I always get the same error:

Traceback (most recent call last):
File "inference.py", line 132, in
args.id, args.n_frames, args.sigma, args.gate, args.seed)
File "inference.py", line 55, in infer
state_dict = torch.load(flowtron_path, map_location='cpu')["state_dict"]
KeyError: 'state_dict'

Clearly I'm doing something wrong - I was hoping you might be able to help me out.

Thanks :)

EDIT: I think the problem has nothing to do with waveglow at all, but instead is (possibly) that I can't use a flowtron checkpoint for inference. Is this the case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions