Research Article
Real-Time Detection of Insulators and Drop Fuses Based on Improved YOLOv4
Algorithm 1: FCM algorithm for anchor boxes selection.
| | Input: iteration = , number of cluster centres = , error = , | | | initial cluster centres = , initial cluster centres = , | | | fuzzy coefficient = , ground truth = , size of GT = (S, 2) | | | Output: cluster centres = | | | whiledo | | | ; | | | Calculate the new cluster centres using expression (7) and U; | | | Calculate the new objective function using expression (8) and Vn; | | | Update the membership matrix Un using expression (9) and IoULOSS; | | | if () then | | | ; | | | break; | | | else | | | ; | | | end if | | | end while |
|