HiXray-author / HiXray

51 stars 7 forks source link

confusion abount DenseFeaturePyramidNetwork #6

Open ztfmars opened 2 years ago

ztfmars commented 2 years ago

(1) code confusion

class DenseFeaturePyramidNetwork(nn.Module):
        .......
        self.gamma_3 = nn.Parameter(torch.zeros(1))
        self.gamma_4 = nn.Parameter(torch.zeros(1))
        self.gamma_5 = nn.Parameter(torch.zeros(1))
       ......
        O3_x = self.gamma_3 * P3_dual + (1 - self.gamma_3) * P3_x
        O4_x = self.gamma_4 * P4_dual + (1 - self.gamma_4) * P4_x
        O5_x = self.gamma_5 * P5_dual + (1 - self.gamma_5) * P5_x

if p3_dual stands for second neck after the boundery activation parts(BA), p3_x stands for first neck part before BA, above code means that the p3_dual is zero! the BA is useless!!!

are you sure the code you have shown is right? or the parameters differs from ssd, yolov5, fcos?

i am really confused about the function of your BA part, can you explain the code and function of BA parts?

(2) can you give the code on fcos ?

look forward to your reply! thx

yjy19931003 commented 7 months ago

the gamma parameter is learnable