开发者社区 > ModelScope模型即服务 > 正文

requires TensorFlow library but it was not found

执行:
```pip install --upgrade tensorflow==2.13.0


已经成功。

但是执行:

portrait_matting = pipeline('portrait-matting')
result = portrait_matting('https://modelscope.oss-cn-beijing.aliyuncs.com/test/images/image_matting.png')
cv2.imwrite('result.png', result['output_img'])

```
时,报告如下错误:
modelscope.pipelines.cv.image_matting_pipeline requires the TensorFlow library but it was not found in your environment. ...

请问问题出在哪里?应该安装 tensorflow 哪个版本?(我没有GPU)

展开
收起
1432226210479870 2024-02-07 16:44:26 168 0
1 条回答
写回答
取消 提交回答
  • 解决了吗?

    2024-08-06 10:54:29
    赞同 展开评论 打赏

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

相关电子书

更多
使用TensorFlow搭建智能开发系统自动生成App UI 立即下载
从零到一:IOS平台TensorFlow入门及应用详解 立即下载
从零到一:IOS平台TensorFlow入门及应用详解(附源 立即下载