labelme icon indicating copy to clipboard operation
labelme copied to clipboard

Cannnot delete polygon label

Open wosiu opened this issue 2 years ago • 11 comments

I chosen a polygon on the list and git "Delete" button and I got this: image

The label is still there after clicking "Yes".

wosiu avatar May 11 '22 23:05 wosiu

yes .I have the same problem. I also open 'Save Automatically' in File ,but when I delete a polygon label ,then I turn to next image . when I return the image I deleted the polygon ,the polygon still exist . my labelme version is 4.6.0 @wkentaro

weiyixing avatar May 17 '22 08:05 weiyixing

I also noticed, that it sometimes eventually gets deleted. But there is a huge lag in UI. The delayed action happens after I do some other action in UI.

wosiu avatar May 17 '22 08:05 wosiu

I know how to deal with my question. my error is that ,when I make my json label , I fill in the json['imagePath'] the absolute path .but the right is the name of image . error example : "imagePath": "F:\wyx\stoneData\test_data\\u6d4b\u8bd5\u96c6\5-10\4_280001.jpg" right example :'4_280001.jpg' so may be your json format error ?

weiyixing avatar May 17 '22 09:05 weiyixing

Thanks for the report. I'll look at this.

wkentaro avatar May 22 '22 12:05 wkentaro

@wkentaro are there any news on this bug? Apart from that, really love the program!

NiklasDHahn avatar Feb 14 '23 10:02 NiklasDHahn

I tried to reproduce and couldn't, so please let me know a way to reproduce.

wkentaro avatar Apr 05 '23 14:04 wkentaro

Hey @wkentaro I think in this case it is user error, at least from my side. I did not see the "Edit Polygons" button which has to be clicked in order to delete the polygon. When in any other mode you cannot delete the polygon, altough it is possible to click on the button "Delete Polygons". This then gives the message from the original post and also after clicking on that button the "Delete Polygon" option for each label is not grayed-out anymore. For me that caused confusion and I thought it was a bug.

NiklasDHahn avatar Apr 06 '23 06:04 NiklasDHahn

@NiklasDHahn Thanks. I could reproduce what you said. "Delete Polygons" button sometimes gets enabled even in "Create" mode. This is not right behavior, so will work fixing it.

wkentaro avatar Apr 06 '23 10:04 wkentaro

我尝试重现但无法重现,所以请让我知道重现的方法。

@NiklasDHahn谢谢。我可以重现你所说的。即使在“创建”模式下,“删除多边形”按钮有时也会启用。这不是正确的行为,因此我们将努力解决它。

Hello, I tried to delete point annotations in the interface, but I couldn't delete them. Now, I can only delete them by selecting the corresponding point annotation in the Polygon Labels column. However, if there are many point annotations in an image, it will be difficult to select the point you want to delete

hellowqc avatar Nov 25 '23 13:11 hellowqc

@hellowqc which version are you using? I have installed '5.0.5'. In the version that I have you can use the 'Edit Polygon' function to delete any point. You need to activate it and then move you mouse over the point that you want to delete. The point will be highlighted and then you can right-click on it and choose 'Remove Selected Point'.

NiklasDHahn avatar Nov 27 '23 07:11 NiklasDHahn

still can not delete polygon label in ver.5.4.1

sralvins avatar Feb 22 '24 09:02 sralvins