anuragxel / salt

Segment Anything Labelling Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

genrated annotion are not correct

akashAD98 opened this issue · comments

image

i took 5 images in folder,
i clicked on object its showing mask on it, then i clicked on save button, reted same process for all images & genrated annotations.json is not correct


{"info": {"description": "SAM Dataset", "url": "", "version": "1.0", "year": 2023, "contributor": "Sam", "date_created": "2021/07/01"}, "images": [{"id": 0, "file_name": "images\\Cigaretee_i_Weapon_Pragati137.jpg", "width": 1000, "height": 1500}, {"id": 1, "file_name": "images\\Cigaretee_i_Weapon_Pragati138.jpg", "width": 1600, "height": 2400}, {"id": 2, "file_name": "images\\Cigaretee_i_Weapon_Pragati139.jpg", "width": 1600, "height": 1067}, {"id": 3, "file_name": "images\\Cigaretee_i_Weapon_Pragati140.jpg", "width": 1600, "height": 2400}, {"id": 4, "file_name": "images\\Cigaretee_i_Weapon_Pragati141.jpg", "width": 1600, "height": 2400}], "annotations": [{"id": 0, "image_id": 0, "category_id": 0, "bbox": [468.0, 675.0, 53.0, 197.0], "area": 10441.0, "iscrowd": 0, "segmentation": [[505.0, 754.5, 500.0, 754.5, 498.0, 753.5, 493.5, 748.0, 489.5, 737.0, 488.5, 736.0, 484.5, 726.0, 475.5, 707.0, 473.5, 699.0, 471.5, 696.0, 467.5, 684.0, 467.5, 678.0, 471.0, 674.5, 477.0, 674.5, 480.5, 681.0, 485.5, 686.0, 489.5, 692.0, 492.5, 700.0, 495.5, 703.0, 495.5, 705.0, 498.5, 711.0, 500.5, 713.0, 504.5, 721.0, 506.5, 727.0, 510.5, 734.0, 511.5, 738.0, 513.5, 740.0, 513.5, 747.0, 507.0, 753.5, 505.0, 754.5], [518.0, 871.5, 514.5, 870.0, 516.0, 867.5, 519.0, 867.5, 520.5, 869.0, 518.0, 871.5]]}], "categories": [{"id": 0, "name": "'cigaretee'", "supercategory": "'cigaretee'"}]}

I don't understand your question. Please clarify your inputs, expected output and current output.

@anuragxel when i use your tool, when i click on object it will draw mask & after clicking on save it will save annotations right?

but im getting the wrong annotations output.

or maybe im not using your toll correctly

steps I follow

  1. open tool
    2.click on object -it will draw mask
    3.click on save

4.open next image do same steps

let me know if my steps are corect or not

Can you give us a zip of an example image and one annotation, to debug this.

In your zip, you have provided two images. Your annotations (atleast from their image_ids) correspond to images that you have not provided. I can't reproduce your bug due to this reason.

Please explain what is exactly wrong with the annotation, preferably using images of "expected" output and observed output.

commented

Hello, I have encountered the same problem.
The reason is that when I run it, clicking on the corresponding label will automatically generate a mask, but there is no attribute box. After clicking Save again, the generated "annotations. json" only has the size and label of the image, and there is no corresponding attribute box, and saving has no response.