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

Failed to execute script 'main' due to unhandled exception: 'NoneType' object has no attribute 'write' #731

Open
ashepp opened this issue May 8, 2024 · 3 comments

Comments

@ashepp
Copy link

ashepp commented May 8, 2024

Getting this error on Windows 11 using 0.9.0

Traceback (most recent call last):
File "multiprocessing\process.py", line 314, in _bootstrap
File "multiprocessing\process.py", line 108, in run
File "buzz\transcriber\whisper_file_transcriber.py", line 91, in transcribe_whisper
File "buzz\transcriber\whisper_file_transcriber.py", line 168, in transcribe_openai_whisper
File "stable_whisper\whisper_word_level.py", line 372, in transcribe_word_level
File "stable_whisper\whisper_word_level.py", line 206, in decode_with_fallback
File "torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "stable_whisper\whisper_word_level.py", line 825, in decode_word_level
File "torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "stable_whisper\whisper_word_level.py", line 717, in run
File "whisper\decoding.py", line 655, in _get_audio_features
File "torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "whisper\model.py", line 162, in forward
File "torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "torch\nn\modules\conv.py", line 307, in forward
return self._conv_forward(input, self.weight, self.bias)
File "whisper\model.py", line 48, in _conv_forward
File "torch\nn\modules\conv.py", line 303, in _conv_forward
return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Given groups=1, weight of size [1280, 128, 3], expected input[1, 80, 3000] to have 128 channels, but got 80 channels instead

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 4, in
File "buzz\buzz.py", line 36, in main
File "Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py", line 52, in _freeze_support
File "multiprocessing\spawn.py", line 116, in spawn_main
File "multiprocessing\spawn.py", line 129, in _main
File "multiprocessing\process.py", line 329, in _bootstrap
AttributeError: 'NoneType' object has no attribute 'write'

@raivisdejus
Copy link
Collaborator

@ashepp Can you please provide more information about the issue, Like steps to reproduce and any settings you used, like what model type and model size was selected?

Issue seems related to the model selected, so you could try some other model type or model size.

@hhive
Copy link

hhive commented May 21, 2024

@ashepp Can you please provide more information about the issue, Like steps to reproduce and any settings you used, like what model type and model size was selected?

Issue seems related to the model selected, so you could try some other model type or model size.

image
It frequently appears in videos that process more than two hours

处理器 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz 2.42 GHz
机带 RAM 16.0 GB (15.7 GB 可用)
系统类型 64 位操作系统, 基于 x64 的处理器
版本 Windows 11 专业版
版本 22H2
安装日期 ‎2024/‎5/‎17
操作系统版本 22621.3593

@hhive
Copy link

hhive commented May 21, 2024

@ashepp Can you please provide more information about the issue, Like steps to reproduce and any settings you used, like what model type and model size was selected?

Issue seems related to the model selected, so you could try some other model type or model size.

It seems to work better if you turn this switch off,But it takes more time

image

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

No branches or pull requests

3 participants