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

关于最近大量用户Whisper模型安装报错,FFMPEG安装网络报错,NLP模型下载失败报错的解决方法 #233

Open
ReiRzior opened this issue Nov 4, 2024 · 4 comments

Comments

@ReiRzior
Copy link

ReiRzior commented Nov 4, 2024

如果你在Git源码安装最新版本时出现以下网络SSL相关报错:
equests.exceptions.ProxyError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip (Caused by ProxyError('Unable to connect to proxy', FileNotFoundError(2, 'No such file or directory')))

ValueError: ❌ Failed to load NLP Spacy model: en_core_web_md

LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input
如果你使用源码安装,请在anaconda prompt powershell中执行conda activate videolingo后,执行python install.py命令前执行:
conda install certifi用于常态化虚拟环境网络代理
实测可以解决大部分国内使用VPN网络访问正常,但是虚拟环境下载网络的异常问题。

@ReiRzior
Copy link
Author

ReiRzior commented Nov 4, 2024

其中Whisper模型下载报错,ffmpeg报错均可以直接下载后放在目录中会自动检测,链接就在报错的命令行日志或config文件可找到,重新python install.py即可。nlp模型则需要执行上述操作

@pangliang
Copy link

与其弄一堆乱七八糟的工具脚本, 不如文档写清楚什么东西放在哪;
一会是 whisperx_model_dir = os.path.join(MODEL_DIR, "whisperx")
一会又是 local_model = os.path.join(MODEL_DIR, "large-v3"),
文档给了个百度盘地址说下载放到根目录, 网盘里的目录结构又是'_model_cache/large-v3'

我实际测试自动下载之后是'_model_cache/whisperx/models--Systran--faster-whisper-large-v3'
真的崩溃

@Huanshere
Copy link
Owner

与其弄一堆乱七八糟的工具脚本, 不如文档写清楚什么东西放在哪; 一会是 whisperx_model_dir = os.path.join(MODEL_DIR, "whisperx") 一会又是 local_model = os.path.join(MODEL_DIR, "large-v3"), 文档给了个百度盘地址说下载放到根目录, 网盘里的目录结构又是'_model_cache/large-v3'

我实际测试自动下载之后是'_model_cache/whisperx/models--Systran--faster-whisper-large-v3' 真的崩溃

自动从hf下载会带哈希验证的格式,如果要加载本地模型就可以跳过复杂的命名

@ziziran97
Copy link

如果你在Git源码安装最新版本时出现以下网络SSL相关报错: equests.exceptions.ProxyError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip (Caused by ProxyError('Unable to connect to proxy', FileNotFoundError(2, 'No such file or directory')))

ValueError: ❌ Failed to load NLP Spacy model: en_core_web_md

LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input 如果你使用源码安装,请在anaconda prompt powershell中执行conda activate videolingo后,执行python install.py命令前执行: conda install certifi用于常态化虚拟环境网络代理 实测可以解决大部分国内使用VPN网络访问正常,但是虚拟环境下载网络的异常问题。

我拉取镜像运行的时候也有这个报错。用pip lsit 查看了下已经安装了 certifi, 请问这个要怎么办呢?

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

4 participants