FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

UnboundLocalError: local variable 'get_tokenizer' referenced before assignment

Open johnhula opened this issue 1 year ago • 5 comments

When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.

johnhula avatar Nov 22 '24 05:11 johnhula

When using the model 'iic/Whisper-large-v3', the error "local variable 'get_tokenizer' referenced before assignment" occurs repeatedly.

wangxiuwen avatar Feb 14 '25 13:02 wangxiuwen

When using the model 'Whisper-large-v3', the error "UnboundLocalError: cannot access local variable 'get_tokenizer' where it is not associated with a value“ also occurs repeatedly.

zhouraym avatar May 29 '25 06:05 zhouraym

When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.

Just reduce the torch version to 2.2.0

Juicy115 avatar Jul 25 '25 07:07 Juicy115

Image It doesn't work

When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.

Just reduce the torch version to 2.2.0

YunxiaoGuo avatar Aug 22 '25 14:08 YunxiaoGuo

pip install -U openai-whisper can solve this problem

zhaotyer avatar Oct 21 '25 01:10 zhaotyer