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

大模型EfficientSam用于图像语义分割自动标注

安装labelme

Labelme安装及使用教程-CSDN博客

pip install labelme -i https://pypi.tuna.tsinghua.edu.cn/simple

在安装的过程中因为会需要pyqt5

error: subprocess-exited-with-error× Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'PyQt5.sip' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyQt5-sip
Building wheel for pyreadline (setup.py) ... done
Created wheel for pyreadline: filename=pyreadline-2.1-py3-none-any.whl size=93852 sha256=c980633ea551b05da9609d81c36f79c7920c9a2c1d08c2f27d1a9b89e5f34461
Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\fd\c8\66\b978274a31abe8e43360ac389c18def59a35528ef7bdcd5c17
Successfully built labelme imgviz pyreadline
Failed to build PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projectsMicrosoft C++ Build Tools - Visual Studio (https://visualstudio.microsoft.com/visual-cpp-build-tools/)
HTML · 213 KB

这个错误信息表明在构建 PyQt5-sip 时遇到了问题,需要 Microsoft Visual C++ 14.0 或更高版本来成功构建。你可以通过安装 "Microsoft C++ Build Tools" 来获取所需的编译工具。

所以我还下载了Microsoft C++ Build Tools

Microsoft C++ 生成工具 - Visual Studio

跟着提示安装:

启动labelme

在OpenDir选择需要标注的文件夹目录:

安装对应模型

选择AI-Model:(EfficientSam)

右键选择“Create AI-Polygon”:

开始下载:

From: https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vits_encoder.onnx
To: C:\Users\Administrator\.cache/gdown\https-COLON--SLASH--SLASH-github.com-SLASH-labelmeai-SLASH-efficient-sam-SLASH-releases-SLASH-download-SLASH-onnx-models-20231225-SLASH-efficient_sam_vits_encoder.onnx

From: https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vits_decoder.onnx
To: C:\Users\Administrator\.cache/gdown\https-COLON--SLASH--SLASH-github.com-SLASH-labelmeai-SLASH-efficient-sam-SLASH-releases-SLASH-download-SLASH-onnx-models-20231225-SLASH-efficient_sam_vits_decoder.onnx 

存放的位置:(一个encoder  85M,一个decoder  15M)

标注过程

然后模型就开始推理了:

在路面点击一个提示点,模型自动预测出道路的边界点:

选择road:

同样,在草地上点一个点:

最终整幅图的标注:

使用大模型自动标注大大提升了语义分割标注效率,并且效果不比人工标注差。

http://www.lryc.cn/news/470433.html

相关文章:

  • 一个关于@JsonIgnore的isxxx()问题
  • Django-cookie,session
  • HarmonyOS开发 - 本地持久化之实现LocalStorage支持多实例
  • 【已解决,含泪总结】非root权限在服务器Ubuntu18.04上配置python和torch环境,代码最终成功训练(二)
  • Flutter鸿蒙next 刷新机制的高级使用【衍生详解】
  • c/c++--静态变量和静态函数(static)
  • Windows系统启动MongoDB报错无法连接服务器
  • Linux的makefile与进度条小程序实践
  • latex写作基础
  • Chromium HTML5 新的 Input 类型email对应c++
  • 嵌入式Linux的AXI平台(platform)驱动教程
  • 什么是Java策略模式?与Spring的完美结合
  • [Go实战]:HTTP请求转发
  • 【C++单调栈 贡献法】907. 子数组的最小值之和|1975
  • 极狐GitLab 17.5 发布 20+ 与 DevSecOps 相关的功能【二】
  • Django 5 增删改查 小练习
  • 【STM32 Blue Pill编程实例】-I2C主从机通信(中断、DMA)
  • 基于SSM+小程序的旅游社交登录管理系统(旅游4)
  • 高级java每日一道面试题-2024年10月24日-JVM篇-说一下JVM有哪些垃圾回收器?
  • Java-内部类
  • flutter集成极光推送
  • D. Skipping 【 Codeforces Round 980 (Div. 2)】
  • 【golang】学习文档整理
  • 动态规划-子序列问题——1218.最长定差子序列
  • 双子塔楼宇可视化系统:提升建筑管理与运营效率
  • 32位的ARMlinux的4字节变量原子访问问题
  • 用哪种建站程序做谷歌SEO更容易?
  • IPsec简单介绍
  • 颠覆级AI:10秒生成超清视频
  • 《西安科技大学学报》