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

华为昇腾 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 adapt
    self.__adapt_layer(softmax)
  File "/root/lbg/project/ACL_PyTorch/built-in/cv/SAM/encoder_onnx_modify.py", line 72, in __adapt_layer
    target_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_shape
    shape_q = self.__graph.add_node(
  File "/usr/local/lib/python3.10/dist-packages/auto_optimizer/graph_refactor/onnx/graph.py", line 402, in add_node
    return self._add_node(node)
  File "/usr/local/lib/python3.10/dist-packages/auto_optimizer/graph_refactor/interface/base_graph.py", line 569, in _add_node
    raise 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 cv2
  File "/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 bootstrap
    native_module = importlib.import_module("cv2")
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _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.kler.cn/a/408790.html

相关文章:

  • 图形渲染性能优化
  • 【GD32】(三) ISP基本使用
  • 《FreeRTOS任务删除篇》
  • 【042A】基于51单片机门禁系统【Proteus仿真+Keil程序+报告+原理图】
  • LeetCode 145.二叉树的后序遍历
  • VMware Workstation 17.6.1
  • js+jqeury纯前端实现像素鸟小游戏
  • 基于卡尔曼滤波器的 PID 控制
  • matlab蜗轮蜗杆设计优化问题
  • Docker 容器的初始化设置
  • 抓包工具Wireshark
  • PL/I语言的起源?Objective C语言起源哪里?JavaScript的起源?Java的起源?B语言的起源?C++语言的起源?C#的起源?
  • 麦肯锡报告 | 科技落地的真谛:超越技术本身的价值创造
  • ue5第三人称闯关游戏学习(一)
  • Axios案例练习
  • 智能锁项目
  • 【阵列信号处理】相干信号和非相干信号生成
  • 单片机系统的性能指标有哪些?
  • 前端三剑客(二):CSS
  • 【GPT】睡觉时,大脑在做什么
  • SCAU软件体系结构实验四 组合模式
  • (四)Spring Boot学习——整合修改使用druid连接池
  • Easy Excel 通过【自定义批注拦截器】实现导出的【批注】功能
  • 鸿蒙学习高效开发与测试-测试工具(5)
  • IM项目-----ElasticSearch
  • C++游戏《密室逃脱2.0》预告