ModelScope问题之拷贝到内网linux系统运行代码报错如何解决

本文涉及的产品
模型在线服务 PAI-EAS,A10/V100等 500元 1个月
交互式建模 PAI-DSW,5000CU*H 3个月
模型训练 PAI-DLC,5000CU*H 3个月
简介: 本合集将提供ModelScope安装步骤、配置要求和环境准备,以便用户顺利启动ModelScope进行模型开发和测试。

问题一:安装ModelScope时,只有healpy未成功,不知有没有影响?


安装ModelScope时,只有healpy未成功,不知有没有影响?


参考回答:

直接运行pipeline执行的安装还是手动调用的安装呢


关于本问题的更多回答可点击原文查看:https://developer.aliyun.com/ask/541902?spm=5176.21213303.J_7341193060.81.5d312f3doPg2N1&scm=20140722.S_community@@%E9%97%AE%E7%AD%94@@541902._.ID_541902-RL_modelscope%E5%AE%89%E8%A3%85-LOC_search~UND~community~UND~item-OR_ser-V_3-P0_16


问题二:安装modelscope[cv],走到Collecting imageio>=2.9.0 时抛异常?


安装modelscope[cv],走到Collecting imageio>=2.9.0 时抛异常?


参考回答:

建议您可以尝试以下步骤:

检查您的 Python 版本是否满足要求。ModelScope 需要 Python 3.7 或以上版本。

检查您的 pip 版本是否满足要求。ModelScope 需要 pip 19.3 或以上版本。

尝试重新安装 imageio。

如果您仍然无法解决问题,建议您联系 ModelScope 的技术支持团队寻求帮助。


关于本问题的更多回答可点击原文查看:https://developer.aliyun.com/ask/541890?spm=5176.21213303.J_7341193060.86.5d312f3doPg2N1&scm=20140722.S_community@@%E9%97%AE%E7%AD%94@@541890._.ID_541890-RL_modelscope%E5%AE%89%E8%A3%85-LOC_search~UND~community~UND~item-OR_ser-V_3-P0_17


问题三:内网安装ModelScope,mac上下载的MGeo模型文件拷贝到内网linux系统,运行代码报错?


内网安装ModelScope,mac上下载的MGeo模型文件拷贝到内网linux系统,运行代码报错?

token- classification is not in the pipelines registry group token-classification.please make sure the correct version of modelscope library is used.


参考回答:

版本不匹配:错误信息中提到确保使用正确版本的ModelScope库。请确保您在Linux系统上安装的ModelScope与您在Mac上下载模型文件时使用的ModelScope库版本相匹配。不同版本的ModelScope可能具有不同的任务注册表,因此需要保持一致。

模型文件缺失:确认您已正确地将MGeo模型文件从Mac系统拷贝到Linux系统,并且模型文件的路径在代码中正确设置。确保路径和文件名的大小写与实际文件匹配。

内网环境问题:如果您的Linux系统处于内网环境中,可能存在无法访问外部网络资源的限制。这可能导致ModelScope无法连接到注册表或下载所需的依赖文件。确保您的Linux系统可以访问所需的网络资源,或者考虑在内网环境中设置本地的ModelScope注册表和依赖文件镜像。

解决此问题的一般步骤如下:

确保使用相同版本的ModelScope库,并在Linux系统上正确安装和配置ModelScope。

检查模型文件是否正确地拷贝到Linux系统,并确保文件路径和命名的正确性。

确保Linux系统能够访问所需的网络资源,包括ModelScope的注册表和依赖文件。


关于本问题的更多回答可点击原文查看:https://developer.aliyun.com/ask/539381?spm=5176.21213303.J_7341193060.91.5d312f3doPg2N1&scm=20140722.S_community@@%E9%97%AE%E7%AD%94@@539381._.ID_539381-RL_modelscope%E5%AE%89%E8%A3%85-LOC_search~UND~community~UND~item-OR_ser-V_3-P0_18


问题四:请问安装ModelScope这个nlp有个依赖,需要如何设置吗?


请问安装ModelScope这个nlp有个依赖,需要如何设置吗?


参考回答:

datasets老版本先卸载下 依赖冲突 尝试用的比较干净的环境装一下


关于本问题的更多回答可点击原文查看:https://developer.aliyun.com/ask/497288?spm=5176.21213303.J_7341193060.121.5d312f3doPg2N1&scm=20140722.S_community@@%E9%97%AE%E7%AD%94@@497288._.ID_497288-RL_modelscope%E5%AE%89%E8%A3%85-LOC_search~UND~community~UND~item-OR_ser-V_3-P0_20


问题五:pip安装modelscope报错


Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 2 ╰─> [27 lines of output]

(result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 35: invalid start byte
  ERROR: Unhandled python exception
      This is a Meson bug and should be reported!
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

这个是Python 3.9.0环境报错

comtypes 1.1.14 numpy 1.24.2 opencv-python 4.7.0.72 pip 23.0.1 pywin32 305 pywinauto 0.6.8 setuptools 67.6.1 six 1.16.0 wheel 0.40.0

这是已经有的库


参考回答:

您好,可以参考这里文档,看下是否可解决您的问题 https://modelscope.cn/docs/%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85


关于本问题的更多回答可点击原文查看:https://developer.aliyun.com/ask/495008?spm=5176.21213303.J_7341193060.126.5d312f3doPg2N1&scm=20140722.S_community@@%E9%97%AE%E7%AD%94@@495008._.ID_495008-RL_modelscope%E5%AE%89%E8%A3%85-LOC_search~UND~community~UND~item-OR_ser-V_3-P0_21

相关文章
|
14天前
|
存储 安全 Linux
|
1月前
|
Linux
Linux yum 运行时提示编码问题错误
Linux yum 运行时提示编码问题错误
16 3
|
1月前
|
缓存 监控 安全
Linux top命令详解:持续监听进程运行状态
Linux top命令详解:持续监听进程运行状态
41 3
|
1月前
|
监控 数据挖掘 大数据
Linux中的nohup命令:让你的任务在后台持久运行
**Linux的`nohup`命令让任务在后台持续运行,即使终端关闭。它创建不受终端影响的新进程,常用于长时间任务,如数据处理。`nohup`将输出重定向至`nohup.out`,可使用`-p`选项避免此行为。示例:`nohup ./script.sh > output.log 2>&1 &`。记得检查输出、重定向、记录命令、监控任务并使用日志管理工具。**
|
23天前
|
Linux 调度
Linux |使用“at”命令在指定时间运行任务
Linux |使用“at”命令在指定时间运行任务
16 0
|
1月前
|
监控 网络协议 关系型数据库
如何在Linux中查看正在运行的进程以及过滤特定端口和进程名称
如何在Linux中查看正在运行的进程以及过滤特定端口和进程名称
56 0
|
1月前
|
Linux
Linux yum 运行时提示编码问题错误
Linux yum 运行时提示编码问题错误
21 0
|
10天前
|
Linux Shell 开发工具
|
5天前
|
Linux
|
10天前
|
网络协议 安全 Linux