|
| 1 | + |
| 2 | +# 2D Image Detection Anotation |
| 3 | + |
| 4 | +<div align="center"> |
| 5 | +<p align="center"> |
| 6 | + <img src="https://user-images.githubusercontent.com/35907364/203893714-9a1102d7-3977-4f03-8be2-5d6f7728211c.gif" align="middle" alt="LOGO" width = "800" /> |
| 7 | +</p> |
| 8 | +</div> |
| 9 | + |
| 10 | +The following content is about how to use EISeg to annotate 2D images. Model preparation and how to use can be seen as follow: |
| 11 | + |
| 12 | +## Model Preparation |
| 13 | + |
| 14 | +Before using EISeg for det annotation, if you use the pre annotation function, please download the detection pretrained model firstly. EISeg 1.1.0 provides PicoDet-S model trained on COCO dataset to meet the requirements of generic detection scenarios. Users can choose manual annotation or rely on AI model to generate labels. |
| 15 | + |
| 16 | + |
| 17 | +| Model Type | Applicable Scenarios | Model Architecture | Download Link | |
| 18 | +| ---------- | -------------------------- |---------------------| ------------------------------------------------------------ | |
| 19 | +| Lightweight Model | Image annotation in generic scenarios | PicoDet-S | [PicoDet-S ](https://paddledet.bj.bcebos.com/deploy/Inference/picodet_s_416_coco_lcnet.tar) | |
| 20 | + |
| 21 | + |
| 22 | +**NOTE**: The downloaded model structure `*.pdmodel` and the corresponding model parameters `*.pdiparams` should be put into the same directory. In the det annotation mode, if the pre annotation function is enabled, you only need to decide the location of the model parameter at the end of `*.pdiparams`, and `*.pdmodel` will be loaded automatically. If you choose not to enable pre annotation, you do not need to load the model. |
| 23 | + |
| 24 | +## Using |
| 25 | + |
| 26 | +The overall process of using EISeg detection labeling is shown in the figure below. For details, please refer to the following instructions: |
| 27 | + |
| 28 | +<p align="center"> |
| 29 | +<img src="https://user-images.githubusercontent.com/48357642/202401769-49f3de96-41b8-406b-ae1c-b6edf163a5c4.png" width="100%" height="100%"> |
| 30 | +<p align="center"> |
| 31 | + The overall process |
| 32 | +</p> |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +After opening the software, make the following settings before annotating: |
| 37 | + |
| 38 | +0. **Annotation Mode Selection** |
| 39 | + |
| 40 | + Select the detection annotation mode. Click the mode switch button in the upper right corner of EISeg to enter the detection annotation mode, and select whether to enable the detection pre annotation function according to the pop-up prompt. If not, skip steps 1 and 2 below. |
| 41 | + |
| 42 | +1. **Load Model Parameter** |
| 43 | + |
| 44 | + Select the appropriate network and load the corresponding model parameters. Click the `Load Network Parameters` button in the `Model Selection` area,After downloading and decompressing the right model and parameters, the model structure `*.pdmodel` and the corresponding model parameters `*.pdiparams` should be put into the same directory, and only the location of the model parameter at the end of `*.pdiparams`need to be selected when loading the model. The initialization of the static model takes some time, please wait patiently until the model is loaded. The correctly loaded model parameters will be recorded in `Recent Model Parameters`, which can be easily switched, and the exiting model parameter will be loaded automatically the next time you open the software. |
| 45 | + <p align="center"> |
| 46 | + <img src="https://user-images.githubusercontent.com/48357642/202402532-ef022aaa-eb43-4b1d-a2f8-7f4b0380bd5f.png" width="40%" height="20%"> |
| 47 | + </p> |
| 48 | + |
| 49 | +2. **Pre Annotation Settings** |
| 50 | + |
| 51 | + Create labels correspondence. Click the `Pre Annotation Settings` button in the `Detection Settings` area to set the corresponding relationship between pre annotation model labels and user-defined labels in the pop-up interface, as well as whether to enable labels of a certain category. In addition, you can also search for specific labels in the search box of the interface, so that users can quickly select target labels to establish the corresponding relationship between labels. By default, COCO 80 labels will be enabled as pre annotation model labels. After establishing the label correspondence, only the user enabled label pairs and user-defined label names will be displayed in the image pre annotation results. |
| 52 | + <p align="center"> |
| 53 | + <img src="https://user-images.githubusercontent.com/48357642/202402889-f45d3275-645e-4633-898a-d60b8c025f19.png" width="40%" height="20%"> |
| 54 | + </p> |
| 55 | + |
| 56 | + <p align="center"> |
| 57 | + <img src="https://user-images.githubusercontent.com/48357642/202403435-5c30bf95-1389-4e63-8a49-cb08524050e6.png" width="40%" height="20%"> |
| 58 | + </p> |
| 59 | + |
| 60 | +3. **Load Image** |
| 61 | + |
| 62 | + Open the image or image folder. Things go well when you see that the main screen image is loaded correctly and the image path is rightly shown in `Data List`. |
| 63 | + |
| 64 | + <p align="center"> |
| 65 | + <img src="https://user-images.githubusercontent.com/48357642/202403076-4d67bbc8-b9d8-401f-811d-cf5c7f8f8a1c.png" width="40%" height="20%"> |
| 66 | + </p> |
| 67 | + |
| 68 | +4. **Add/Load Label** |
| 69 | + |
| 70 | + Add/load labels. If the user has enabled the pre annotation function, the labels predicted by the model will be automatically added to the label list. Users can also manually click the `Add Label` button to create a new label, which are divided into 4 columns corresponding to pixel value, description, color and deletion. The newly created labels can be saved as txt files by `Save Label List`, and other collaborators can import labels by `Load Label List`. Labels imported by loading will be loaded automatically after restarting the software. In addition, label search is also supported. You can search whether there is a specific label in the label list through `Search`, so that users can quickly locate the target label. |
| 71 | + <p align="center"> |
| 72 | + <img src="https://user-images.githubusercontent.com/48357642/202403524-6a008e5f-9f00-418c-b91e-0602ae71fb49.png" width="40%" height="20%"> |
| 73 | + </p> |
| 74 | + |
| 75 | +5. **Annotation** |
| 76 | + |
| 77 | + Start labeling. If you enable the pre annotation function, you can modify and delete the bounding box predicted by the model. You can also click the `Start Draw Function` button in the `Detection Settings` area, and select a specific label in the `Label List` area to manually draw bounding box in the currently displayed image. You can drag the upper left and lower right corners of the bounding box to modify the box. You can click the left mouse button to select the specified bounding box to delete, or you can select the color of the cross hairs when drawing the bounding box. In addition, the color of the bounding box corresponds to the color of the label. |
| 78 | + <p align="center"> |
| 79 | + <img src="https://user-images.githubusercontent.com/48357642/202403616-8a57bf25-7eee-4814-be57-0d7889042ebb.png" width="40%" height="20%"> |
| 80 | + </p> |
| 81 | + |
| 82 | +6. **Autosave** |
| 83 | + |
| 84 | + You can choose the right folder and have the `autosave` set up, so that the annotated image will be saved automatically when switching images. |
| 85 | + |
| 86 | +## Instruction of New Functions |
| 87 | + |
| 88 | +- **Detection Settings** |
| 89 | + |
| 90 | + - After enabling the pre annotation function, the user can drag the `score threshold` slider in the `Detection Settings` area to set the confidence level of the model prediction, thus displaying different numbers of bounding boxes. The manually edited boxes will not disappear with the sliding of the slider. |
| 91 | + - After enabling the pre annotation function, the user can click the `ReDet` button in the `Detection Settings` area to delete all the original bounding boxes and re inference and display them. |
| 92 | + |
| 93 | +- **Save Format** |
| 94 | + |
| 95 | + - By default, Annotation results are saved in COCO format. You can also select VOC and YOLO formats according to your needs. |
| 96 | + - With no specified save path, the image is save to the label folder under the current image folder by default. |
0 commit comments