Research Article

An Improved YOLOX Algorithm for Forest Insect Pest Detection

Algorithm 1

Fusion.
Input:
is outputs of dark2, dark3, dark4, dark5;
Output:
(1) set  = 1,  = 1,  = 1,  = 1,  = 1,  = 0.0001;
(2)for i = 1,2 do
(3)   { Resize() the same size with }
   { Conv(()/( + + ))}
(4)End for
(5)for j = 2, 3, 4, 5 do
(6)  if j = 2 then
(7)    { Resize() the same size with }
(8)    { Conv(()/( + + )}
(9)  else if j = 5 then
(10)    { Resize() the same size with }
(11)    { Conv(()/( + + )}
else
(12)    { Resize() the same size with }
(13)    { Conv(()/( + + + )}
(14)  end if
(15)end for