Skip to content

Docker cannot download models #191

Closed
@Anselmo95

Description

@Anselmo95

Hello,
Using the docker+GUI works only with the default model (std), every time I select any other model the log get stuck at downloading it, ex :

Output saved to   /home/user/app/tmp/ebook-3ef88538-4348-48fc-a874-1147aefb2568/test.epub
Loading TTS xtts model from BryanCranston...

model.pth:   0%|                                                                                                  | 0.00/1.87G [00:00<?, ?B/s]

My first thought was that maybe the docker has no internet connection so i tried going into a shell and test it:

 docker run -it --rm --gpus all -p 7860:7860 --platform=linux/amd64 athomasson2/ebook2audiobook bash
user@9584e0d4c29e:~/app$ wget https://www.google.com/
--2025-01-04 17:15:32--  https://www.google.com/
Resolving www.google.com (www.google.com)... 142.250.179.100, 2a00:1450:4007:80c::2004
Connecting to www.google.com (www.google.com)|142.250.179.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html                              [ <=>                                                              ]  18.26K  --.-KB/s    in 0.04s   

2025-01-04 17:15:33 (435 KB/s) - 'index.html' saved [18703]

and it seems that there is no problem.

I can probably download the models by hand but I think I'll have to do it every time because the content of the docker reset when I exit.

Finally thanks for this great project 😁

Edit:

It seams that what is happening is the same as in this issue and disabling the progress bar fix the hang for me.

docker run -it --rm --gpus all -e HF_HUB_DISABLE_PROGRESS_BARS=1 -e HF_HUB_ENABLE_HF_TRANSFER=0 -p 7860:7860 --platform=linux/amd64 athomasson2/ebook2audiobook python app.py

It is a bit annoying not seeing the download progress but at least I use the docker with the other models now

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDockerRelated to docker

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions