Comments (2)
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.
当我查看图像时,从图像的左上角生成了一条粉红色的线。我试图通过从文件dataset_explorer.py打印变量“sc”来调查这个问题,我发现开始时生成的随机值“6.91669498947497e-310,6.91669498947497e-310”。为了克服这个问题,我在文件dataset_explorer.py中添加了这一行“sc = [x for x in sc if x > 0.1]”。
截图:
请参阅随附的屏幕截图以更好地理解。
预期成果:
粉色线不应从图像的左上角生成。
重现步骤:
- 运行segment_anything_annotator.py。
- 标记任何对象。
- 选择标签名称并单击保存按钮,然后单击添加按钮。
- 将在图像上找到错误。
it is also have some problem
from salt.
Related Issues (20)
- how to get annotations from mask? HOT 5
- genrated annotion are not correct HOT 6
- Failed to run, maybe caused by parsing annotations.json HOT 2
- Some GUI problems HOT 3
- TypeError: 'torch._C.Value' object is not iterable HOT 1
- remote labeling HOT 1
- Package libffi conflict
- Excluded regions are still getting annotated within the annotated area of the image.
- IndexError: list index out of range
- How to do box labeling mode? I left clicked just marked the mask HOT 1
- Error for low quality image HOT 2
- An error occurred when importing the labeling results into cvat, has anyone encountered it?
- When you add it, you get this extra piece. How to solve HOT 1
- ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (8,) + inhomogeneous part.
- Suggestion - Integrate MobileSAM into the pipeline for lightweight and faster inference HOT 1
- Error when clicking middle mouse button
- There is a problem with the reshape node exported by ONNX. I checked the network structure and found that it is only a simple reshape node. Have you encountered this problem
- check this problem, has been quite persistent, when creating a label which is partially covered under a label. Crashing Frequntly HOT 1
- Unreasonable segmentation results HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salt.