resemble-ai / Resemblyzer

A python package to analyze and compare voices with deep learning
Apache License 2.0
2.79k stars 429 forks source link

Custom "weights_fpath" load enhancement #35

Closed yesseyev closed 4 years ago

yesseyev commented 4 years ago

I'm using Resemblyzer for a while, but right now I need to use my own pretrained.pt file instead of built-in one. This enhancement extracts defined in code weights_fpath as constructor argument with default value None. If argument is provided, custom model will be used, otherwise Resemblyzer will work as usual.

No major changes were made. Looking forward to see my changes in new version. Thank you in advance.

yesseyev commented 4 years ago

@CorentinJ Resolved all issues.

P.S. My IDEA automatically formatted all lines in before commit hook. Sorry for that.

CorentinJ commented 4 years ago

That's fine, this is the code format they should have been in in the first place

yesseyev commented 4 years ago

Excuse me @CorentinJ. I wanted to know when would my PR be merged? Thank you!

CorentinJ commented 4 years ago

Oh I thought you had merged it

Josseca commented 3 years ago

Código