Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unidic #210

Open
makhyoun5 opened this issue Jan 10, 2025 · 11 comments
Open

unidic #210

makhyoun5 opened this issue Jan 10, 2025 · 11 comments
Assignees
Labels

Comments

@makhyoun5
Copy link

I'm stuck in installing Unidic 3.1.0 after downloading , i tried to download it manually and i didn't know in which folder .

@ROBERT-MCDOWELL
Copy link
Collaborator

on every issue open, you should provide the terminal logs and OS, CPU, GPU, or we cannot help.
start to run ebook2audiobook.cmd windows or .sh for linux and it should be automatic.
if not. use the docker.

@Canapin
Copy link

Canapin commented Jan 11, 2025

Using Docker on Windows.
The download URL for UniDic is very slow.
It successfully downloads and installs UniDic, but each time I run the container, it says:

UniDic dictionary not found or incomplete. Downloading now...

And starts downloading it again (very slowly).

@ROBERT-MCDOWELL
Copy link
Collaborator

we don't control the unidic servers. wait a little and try later

@Canapin
Copy link

Canapin commented Jan 11, 2025

The download is slow, but works. The problem for me is that it re-downloads UniDic each time I run the container.

docker run -it --rm --gpus all -p 7860:7860 --platform=linux/amd64 athomasson2/ebook2audiobook python app.py"
UniDic dictionary not found or incomplete. Downloading now...
download url: https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip
Dictionary version: 3.1.0+2021-08-31
Downloading UniDic v3.1.0+2021-08-31...
unidic-3.1.0.zip: 100%|██████████████████████████████████████████████████████████████| 526M/526M [07:18<00:00, 1.20MB/s]
Finished download.
Downloaded UniDic v3.1.0+2021-08-31 to /home/user/.local/lib/python3.12/site-packages/unidic/dicdir
* Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

@ROBERT-MCDOWELL
Copy link
Collaborator

this is not normal, I think @DrewThomasson has an update for that.

@DrewThomasson
Copy link
Owner

DrewThomasson commented Jan 13, 2025

@Canapin
That's weird

The docker image already has that baked in from the initial xtts test run during the build...

I'll see if the next update has that issue when implemented in docker

@Rubrum7
Copy link

Rubrum7 commented Jan 20, 2025

INFO: Could not find files for the given pattern(s).

i have the same issue but withouth docker

@ROBERT-MCDOWELL
Copy link
Collaborator

@Rubrum7
it's not an issue,0.0.0.0 in network terms means "I'M LISTENING ON ALL LOCAL IP ADDRESSES"
so connect to one of yours... 127.0.0.1 for ex

@Rubrum7
Copy link

Rubrum7 commented Jan 21, 2025

@ROBERT-MCDOWELL
Thank you! Sorry, I'm a complete beginner in this area, and I have another question. Why does the command prompt show this message after I choose the GPU as the hardware to run the program?

GPU is not available on your device!
Available Processor Unit: CPU

I use other programs that utilize the GPU without any issues. My system specs are:

Processor: Intel i9-12900HX
RAM: 32GB
GPU: NVIDIA RTX 4060 with 8GB VRAM
OS: Windows 11

Could you help me understand why this happens?

@ROBERT-MCDOWELL
Copy link
Collaborator

@Rubrum7 this is a well-known issue reported many times (you should search in issues section!)
fixed it next update....

@csaben
Copy link

csaben commented Feb 1, 2025

Using Docker on Windows. The download URL for UniDic is very slow. It successfully downloads and installs UniDic, but each time I run the container, it says:

UniDic dictionary not found or incomplete. Downloading now...

And starts downloading it again (very slowly).

you can fix this for now by simply editing the Dockerfile and rebuilding:

...
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# put here to prevent having to rebuild preceding content
RUN python -m unidic download
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants