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

Imported model cannot be loaded #33

Closed
ericstheguy opened this issue Apr 29, 2021 · 8 comments
Closed

Imported model cannot be loaded #33

ericstheguy opened this issue Apr 29, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@ericstheguy
Copy link

ericstheguy commented Apr 29, 2021

Was exporting a model beforehand. (Using a google colab notebook.)

Type: ValueError
Text: invalid literal for int() with base 10: 'checkpoints'
Full: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/content/Voice-Cloning-App/application/views.py", line 391, in download_model model_path = get_latest_checkpoint(os.path.join(paths["models"], model_name)) File "/content/Voice-Cloning-App/training/checkpoint.py", line 27, in get_latest_checkpoint if int(checkpoint.split("")[1].split(".")[0]) > int(latest_checkpoint.split("")[1].split(".")[0]): ValueError: invalid literal for int() with base 10: 'checkpoints'

@BenAAndrew BenAAndrew self-assigned this Apr 29, 2021
@BenAAndrew
Copy link
Owner

Hi @ericstheguy, do you mean that you have exported a model from a colab notebook and want to use it in the app?

@ericstheguy
Copy link
Author

ericstheguy commented Apr 29, 2021

Not really. Generally the error above displays whenever I try to do anything with the model. Like training.

@BenAAndrew
Copy link
Owner

@ericstheguy Do you start with an existing checkpoint that you've imported or is it from scratch?

@ericstheguy
Copy link
Author

ericstheguy commented Apr 30, 2021

Was using a checkpoint made from scratch in colab. Trained to 10,000 iterations (Batch Size = 78)

@BenAAndrew
Copy link
Owner

@ericstheguy Could you upload the checkpoint to google drive and reply with the link so I can verify

@BenAAndrew BenAAndrew added the bug Something isn't working label Apr 30, 2021
@BenAAndrew BenAAndrew changed the title Model Export and Training bug. Imported model cannot be loaded Apr 30, 2021
@ericstheguy
Copy link
Author

@ericstheguy Could you upload the checkpoint to google drive and reply with the link so I can verify

https://drive.google.com/file/d/1MjISOaMuEcsInYbTUJzoKFCCQHtsRy2f

@BenAAndrew
Copy link
Owner

BenAAndrew commented May 1, 2021

@ericstheguy I can synthesize with the model. Are you trying to train or synthesize?

2021-05-01.12-24-58.mp4

@ericstheguy
Copy link
Author

ericstheguy commented May 2, 2021

Figured it out, really strange. Just had to import the model (upload) into the app with a new name, and import the dataset with the same name as the model. All through the colab notebook.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants