Giter Site home page Giter Site logo

you-only-click-once's Introduction

You-Only-Click-Once

基于 Segment Anything Model 的半自动数据标注工具,只需点击一次即可实现图像分割和标注以及yolo数据格式转换。 支持多目标多类别半自动标注。

1. 安装依赖

  1. pip install -r requirements.txt
  2. 下载SAM模型,放在 ./models/ 路径下,下载地址:这是一个链接 基础研究部网盘。

2. 使用方法

  • 根据自身情况填写main.pyimg_path, mask_path, label_path 的路径
  • 修改标签类别
  • 运行即可,鼠标左键选择点位,右键撤回上次所选点位,按 s 键保存,按Ese键退出
  • 请按照 labels 中的类别进行标注。即第一轮标注第1类目标,第N轮标注第N类目标,直至标完为止。每一类目标标注完成后会有弹窗提示。

注意事项:

  1. 如果分割完之后有小噪音被误分割(DataSet/mask中可以查看分割图),可以调整segImageProcess.py中_maskMix方法中形态学操作部分的kernel_sizeiterations,然后重新运行即可。 由于我的像素分辨率较高,内核大小可能偏大,请根据自身情况调节 确保label文件夹内没有与图片同名的txt文件 。
  2. 每次运行完请及时清理文件夹,防止下次运行时出现错误。

you-only-click-once's People

Contributors

mobi-789 avatar

Stargazers

OOM-789 avatar  avatar  avatar Galaxy avatar  avatar solo avatar  avatar  avatar

Watchers

OOM-789 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.