GithubHelp home page GithubHelp logo

Comments (2)

edwardwterry avatar edwardwterry commented on July 19, 2024 1

I grappled with this for a few hours. I started with your suggestion sc = [x for x in sc if x > 0.1] but realized it handled some cases differently, specifically when the actual coordinate is 0 (i.e. along the top or left borders). Instead I handled the entries one pair at a time. I added these lines after L90:

tol = 1e-3
cleaned = []
for x, y in zip(sc[::2], sc[1::2]):
    if x > tol and y > tol:
        cleaned.append(x)
        cleaned.append(y)
annotation["segmenation"].append(cleaned)

It's not particularly compact but it seems to do the job.

The pair of coordinates at the origin appears to be an artifact of the call to simplify_coords_vwp and I'm not sure if it is consistently the first pair of elements, so best to go through the full list.

from salt.

threeneedone avatar threeneedone commented on July 19, 2024

当我查看图像时,从图像的左上角生成了一条粉红色的线。我试图通过从文件dataset_explorer.py打印变量“sc”来调查这个问题,我发现开始时生成的随机值“6.91669498947497e-310,6.91669498947497e-310”。为了克服这个问题,我在文件dataset_explorer.py中添加了这一行“sc = [x for x in sc if x > 0.1]”。

截图:

请参阅随附的屏幕截图以更好地理解。

  1. 截图来自 2023-05-02 15-36-22
  2. 截图来自 2023-05-02 15-36-29

预期成果:

粉色线不应从图像的左上角生成。

重现步骤:

  1. 运行segment_anything_annotator.py。
  2. 标记任何对象。
  3. 选择标签名称并单击保存按钮,然后单击添加按钮。
  4. 将在图像上找到错误。

it is also have some problem

from salt.

Related Issues (20)

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.