coqui-ai / STT

šŸøSTT - The deep learning toolkit for Speech-to-Text. Training and deploying STT models has never been so easy.
https://coqui.ai
Mozilla Public License 2.0
2.27k stars 275 forks source link

Bug: lm_optimize fails due to check failing. #2302

Closed BjornTheProgrammer closed 1 year ago

BjornTheProgrammer commented 2 years ago

Welcome to the šŸøSTT project! We are excited to see your interest, and appreciate your support!

This repository is governed by the Contributor Covenant Code of Conduct. For more details, see the CODE_OF_CONDUCT.md file.

If you've found a bug, please provide the following information:

Describe the bug When attempting to run the optimizer python script to determine the best alpha and beta for a customer scorer, it errors with the following output on an M1 Macbook 2020 running macOS Monterey 12.5.1.

python3 lm_optimizer.py
2022-09-30 12:37:43.198725: F tensorflow/core/lib/monitoring/sampler.cc:42] Check failed: bucket_limits_[i] > bucket_limits_[i - 1] (0 vs. 10)
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted

To Reproduce Steps to reproduce the behavior:

  1. Run docker pull ghcr.io/coqui-ai/stt-train:v0.10.0-alpha.4
  2. Run docker run -it --name stt-test --entrypoint /bin/bash ghcr.io/coqui-ai/stt-train:v0.10.0-alpha.4
  3. Make file at /code/data/text.txt with following data
    up
    down
    left
    right
    velocity
    distance
    forward
    backward
    faster
    slower
    stop
    start
    take off
    land
    launch
  4. Run python3 generate_lm.py --input_txt /code/data/text.txt --output_dir /code/data/ --top_k 500000 --kenlm_bins /code/kenlm/build/bin/ --arpa_order 5 --max_arpa_memory "85%" --arpa_prune "0|0|1" --binary_a_bits 255 --binary_q_bits 8 --binary_type trie --discount_fallback
  5. Run python3 lm_optimizer.py
  6. See error

Expected behavior To receive an optimized alpha and beta

Environment (please complete the following information):

Additional context Add any other context about the problem here.

wasertech commented 1 year ago

Why are your using v0.10.0-alpha.4 ? Try with the latest 1.4.0 if itā€™s still doesnā€™t work, itā€™s because your are using an M1 Mac. Which as far as I know is not supported yet for inference. Iā€™m not even sure training will ever be supported on Apple Silicone laptopsā€¦

BjornTheProgrammer commented 1 year ago

Thank you, I was using an M1 MacBook, and I apologize for wasting your time, I attempted many fixes not stated here to solve the import error and apparently fixed them, but couldn't get the final TensorFlow issue to work. So I have given up on utilizing the lm_optomizer on my Mac. Thanks again for your help.