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