当前位置: 首页 > news >正文

华为昇腾 acl_pytorch

目录

sam部署教程:

segment-anyghing地址:

sam onnx地址:

报错:

encode继续报错:


sam部署教程:

Ascend/ModelZoo-PyTorch - Gitee.com

segment-anyghing地址:

https://github.com/visheratin/segment-anything

https://github.com/OroChippw/segment-anything

ais_bench

sam onnx地址:

https://github.com/OroChippw/SegmentAnything-OnnxRunner?tab=readme-ov-file

报错:

import auto_optimizer 

解决方法:安装msit

msit: 统一推理工具链入口,提供客户一体化开发工具,支持一站式调试调优 - Gitee.com

encode继续报错:

Traceback (most recent call last):File "/root/lbg/project/ACL_PyTorch/built-in/cv/SAM/encoder_onnx_modify.py", line 158, in <module>graph = fa_adapter.adapt()File "/root/lbg/project/ACL_PyTorch/built-in/cv/SAM/encoder_onnx_modify.py", line 29, in adaptself.__adapt_layer(softmax)File "/root/lbg/project/ACL_PyTorch/built-in/cv/SAM/encoder_onnx_modify.py", line 72, in __adapt_layertarget_shape = self.__infer_target_shape(layer_name_prefix, q)File "/root/lbg/project/ACL_PyTorch/built-in/cv/SAM/encoder_onnx_modify.py", line 110, in __infer_target_shapeshape_q = self.__graph.add_node(File "/usr/local/lib/python3.10/dist-packages/auto_optimizer/graph_refactor/onnx/graph.py", line 402, in add_nodereturn self._add_node(node)File "/usr/local/lib/python3.10/dist-packages/auto_optimizer/graph_refactor/interface/base_graph.py", line 569, in _add_noderaise ValueError("node name '{}' already exists!".format(node.name))
ValueError: node name 'Shape_q' already exists!

segment_anything_diff.patch

ACL_PyTorch/built-in/cv/SAM/segment_anything_diff.patch

ModelZoo-PyTorch/ACL_PyTorch/built-in/cv/SAM/segment_anything_diff.patch at 6a2804a358a5b18e3dac1ab902f41f88e240b00f · Ascend/ModelZoo-PyTorch · GitHub

cv报错:

Traceback (most recent call last):File "/root/lbg/sam_quant_preprocessing.py", line 19, in <module>import cv2File "/usr/local/lib/python3.10/dist-packages/cv2/__init__.py", line 181, in <module>bootstrap()File "/usr/local/lib/python3.10/dist-packages/cv2/__init__.py", line 153, in bootstrapnative_module = importlib.import_module("cv2")File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

  • sudo apt-get update
  • sudo apt-get install libgl1-mesa-glx

http://www.mrgr.cn/news/77975.html

相关文章:

  • PD虚拟机启动后 Mac主机无法上网解决教程
  • 大数取模 详解
  • CentOS8.5.2111(7)完整的Apache综合实验
  • 2024大数据职业技能竞赛(国赛)模块E-工业 用折线图展示设备OP160每日的运行时长
  • goframe开发一个企业网站 MongoDB 完整工具包19
  • python安装包中的一些问题(三):加载 matplotlib 的过程中,调用了 Pillow(PIL 库)时发生了错误
  • Node教程和实战
  • MCU(一) 时钟详解 —— 以 GD32E103 时钟树结构为例
  • C++设计模式-模板模式,Template Method
  • Vue 中 data 属性为函数的深度剖析:原理、区别与实践
  • aws服务--机密数据存储KMS(1)介绍和使用
  • 16:(标准库)ADC三:使用外部触发启动ADC/模拟看门狗
  • [OpenHarmony5.0][环境][教程]OpenHarmony 5.0源码在WSL2 Ubuntu22.04 编译环境搭建教程
  • C++设计模式-策略模式-StrategyMethod
  • 分割一切2.0,SAM2详解
  • 接口性能优化宝典:解决性能瓶颈的策略与实践
  • java 二分查找 方法 详解
  • 虚幻引擎---术语篇
  • 4.SynchronousMethodHandler
  • Spring Boot 动态数据源切换
  • 十一、排他思想、window、延时定时器、间歇函数、时间戳、location、navigator、history、本地存储localStorage
  • C++设计模式-享元模式
  • 安装 Docker(使用国内源)
  • 从0开始学PHP面向对象内容之常用设计模式(适配器,桥接,装饰器)
  • 大模型系列11-ray
  • 疑难Tips:NextCloud域名访问登录时卡住,显示违反内容安全策略