linuxserver / docker-faster-whisper

GNU General Public License v3.0
93 stars 4 forks source link

how to invoke faster-whisper in this docker image #7

Closed daver1958 closed 7 months ago

daver1958 commented 10 months ago

Is there an existing issue for this?

Current Behavior

I am just trying to figure out how to invoke whisper after running this Docker image.

"whisper-ctranslate2" doesn't seem to exist in the docker.

So do I run the Docker image and then, from the command line ("docker exec -it faster-whisper /bin/bash"), pass some Python programs to it (there seem to be mostly Python packages in the Docker image)?

Sorry, this is a pretty dumb question.

Expected Behavior

No response

Steps To Reproduce

its an unraid server, installed the docker, specified the small model. gave it time to download the model (i checked - its there).

Environment

- OS:
- How docker service was installed:
unraid docker image

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='faster-whisper'
  --net='bridge'
  -e TZ="Australia/Sydney"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="towerold"
  -e HOST_CONTAINERNAME="faster-whisper"
  -e 'WHISPER_MODEL'='small'
  -e 'WHISPER_BEAM'='1'
  -e 'WHISPER_LANG'='en'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '10300:10300/tcp'
  -v '/mnt/user/appdata/faster-whisper':'/config':'rw' 'lscr.io/linuxserver/faster-whisper'
13c397248869fe86f84a65fb80cb262a1d0ad0805d1b09e300375de5c97caa1b

The command finished successfully!

Container logs

text  error  warn  system  array  login  

WARNING:wyoming_faster_whisper.download:Model hashes do not match
WARNING:wyoming_faster_whisper.download:Expected: {'config.json': 'e5a2f85afc17f73960204cad2b002633', 'model.bin': '8b2c0a5013899c255e1f16edc237123b', 'vocabulary.txt': 'c1120a13c94a8cbb132489655cdd1854'}
WARNING:wyoming_faster_whisper.download:Got: {'model.bin': '', 'config.json': '', 'vocabulary.txt': ''}
INFO:__main__:Downloading FasterWhisperModel.SMALL to /config
INFO:__main__:Ready
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[ls.io-init] done.
github-actions[bot] commented 10 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

isaacolsen94 commented 10 months ago

Any update on this guy? Trying to run the :gpu version and I get the "Model Hashes do not match" error

idanzairi302 commented 9 months ago

any progress? I am having the same issue as the container starts with no problem but doesn't seem to be invoked.

LinuxServer-CI commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

homerr commented 7 months ago

Going to close this issue off for two reasons - first there's been quite a few releases since this opened which may have resolved any issues that were being experienced, second being this application seems to work with HA exclusively and is automatically invoked when the container starts. If you have questions about the use of it, I'd suggest joining us in Discord as there may be other users that can advise on the use of this.

github-actions[bot] commented 6 months ago

This issue is locked due to inactivity