我的情况是原来的python版本是3.5,换成最新版本就好了 5.4 AttributeError: module ‘whisper’ has no attribute ‘load_model’ whisper.load_model(“base”) AttributeError: module ‘whisper’ has no attribute ‘load_model’ 一开始是pycharm直接给我装的,重新弄下就好了 BASH pip install git+https://g...
一开始安装的时候用 pip install ffmpeg,后来卸载再装 ffmpeg-python好了 5.3 mac 升级以后无法使用pycharm 我的情况是原来的python版本是3.5,换成最新版本就好了 5.4 AttributeError: module ‘whisper’ has no attribute ‘load_model’ whisper.load_model(“base”) AttributeError: module ‘whisper’ has no ...
load_audio函数用于加载和采样音频文件,而log_mel_spectrogram函数用于将采样后的音频信号转换为一种适合于语音识别的表示方式。在训练和推理过程中,将会调用这两个函数来对音频数据进行预处理,以便于后续的模型训练和预测。 模型运行 命令行:whisper /home/mgtv/test_whisper/test2.mp4 --model medium --language zh...
base_model = AutoModel.from_pretrained( model_path, load_in_8bit=True, torch_dtype=torch.float16, device_map="auto" ) # 获取模型参数分配表 device_map = {f"base_model.model.{k}": v for k, v in model.hf_device_map.items()} # 按相同的参数分配加载peft model peft_model = PeftMod...
AttributeError: module 'jax.core' has no attribute 'NamedShape' Triedpip install -U "jax", same error. Tried `pip install -U "jax[cuda12]==0.4.31" # so they are all the same version now Still getting the same message. pip uninstall jax jaxlib jax-cuda12-pjrt jax-cuda12-plugin ...
Running in Jupyter Notebook raises 'OutStream' object has no attribute 'buffer' #2516 1 3 replies glangford Jan 23, 2023 I am not a whisper developer, but I would suggest two possible workarounds: set verbose to False (which bypasses the offending code) fall back to an earlier releas...
gitclonehttps://www.modelscope.cn/iic/CosyVoice-ttsfrd.git pretrained_models/CosyVoice-ttsfrd 错误处理 modelscope AttributeError 'ClassDef'objecthas no attribute'typed_params' pip uninstall modelscope pip install modelscope# 1.22.1 的最新版正常的,1.14下载卡死,1.20找不到~/.cache ...
OpenAI 语音转文本 (whisper-1) API 错误:“AttributeError: module 'openai' has no attribute 'Audio'”问题描述 投票:0回答:1ChatGPT API 与 Speech-to-text Whisper api 一起发布,我很高兴尝试一下。 链接在这里 我试过他们的示例代码 # Note: you need to be using OpenAI Python v0.27.0 for the...
master metal-and-alloc fix-bench grammar-debug feature/debug-gradle-signing java-bindings fix-coreml-ane fix-vzip llama-podcast talk.llama-coreml coreml-with-state timing guided diarization chess arghh fa-decoder threads nvblas macros-cvt-fp16 v1.4.2 v1.4.1 v1.4.0 v1.3.0 v1.2.1 v1.2....
上記のコードを実行した所、エラーが発生しました。コードの修正をお願いします。 AttributeError: module 'whisper' has no attribute 'recognize'▼ChatGPT(自動応答) 申し訳ありません。whisperモジュールにrecognize関数があるかどうか再度確認しましたが、実際には存在しませんでした。正...