ms | modelscope源码方式安装

可通过从GitHub上下载ModelScope源码进行安装。

适合本地开发调试使用,修改源码后可以直接执行。 ModelScope的源码可以直接clone到本地:

git clone git@github.com:modelscope/modelscope.git cd modelscope git fetch origin master git checkout master 

安装依赖

如仅需体验多模态领域模型,可执行如下命令安装依赖:

pip install ".[multi-modal]"

如仅需体验NLP领域模型,可执行如下命令安装依赖:

pip install ".[nlp]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

如果使用miniconda环境,需要提前安装setuptools_scm。

如仅需体验CV领域模型,可执行如下命令安装依赖:

pip install ".[cv]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

如仅需体验语音领域模型,请执行如下命令:

pip install ".[audio]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

** 注意:语音相关的功能仅支持 python3.7,tensorflow1.15.4的Linux环境使用 **

如仅需体验科学计算领域模型,请执行如下命令:

pip install ".[science]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

如果您所有领域的模型功能都想体验,可执行如下命令:

pip install "modelscope[audio,cv,nlp,multi-modal,science]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html


 

  • 42
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值