Closed sbharadwajj closed 5 years ago
Hi, @chichilicious
Hi,
for b bounding_boxes:
b=[int(bi) for bi in b]
x1,y1,x2,y2=b[0:4]
x2 = x2 + 1
y2 = y2 + 1
w = y2 - y1
h = x2 - x1
xw1 = max(int(x1 - self.margin * w), 0)
yw1 = max(int(y1 - self.margin * h), 0)
xw2 = min(int(x2 + self.margin * w), img_w - 1)
yw2 = min(int(y2 + self.margin * h), img_h - 1)
Hmm... One more thing, how about the range of pixel values (0-1 or 0-255).
If you save the inputs to the model created from both detectors, and the saved images are similar, there seems to be nothing wrong the code...
I verified that too. It is the same.
😕
How "bad" are the results? If the results were worse than that of dlib but they are somewhat reasonable, it would be limitation of the model...
Actually, on further testing, I found out that they are somewhat reasonable compared to dlib. It lies in the same approximate range. But when I tested the model with another dataset, the performance was poor. But again that is probably the limitation of the model. Thanks for the help!
@yu4u Hi,
img_size
is 64 and the input to the model is of the form(batch_size, 64,64,3)
, but the age prediction is bad compared to using dlib.