rykov8 / ssd_keras

Port of Single Shot MultiBox Detector to Keras
MIT License
1.1k stars 553 forks source link

In ssd_utils (encode_box) : 'float' object has no attribute 'log' #112

Open drorhilman opened 7 years ago

drorhilman commented 7 years ago

Trying to replicate the training in SSD_training.ipynb with my own dataset I am getting

AttributeError: 'float' object has no attribute 'log' In ssd_utils.py; line 114:
encoded_box[:, 2:4][assign_mask] = np.log(box_wh / assigned_priors_wh)

called from the generator... encoded_boxes = np.apply_along_axis(self.encode_box, 1, boxes[:, :4])

What is this error?