chuanqi305 / MobileNetv2-SSDLite

Caffe implementation of SSD and SSDLite detection on MobileNetv2, converted from tensorflow.
MIT License
448 stars 231 forks source link

1.5 has type float, but expected one of: int, long ? #57

Open match08 opened 4 years ago

match08 commented 4 years ago

python3 gen_model.py error:

Exception has occurred: TypeError 1.5 has type float, but expected one of: int, long File "/xxx/xxx/MobileNetv2-SSDLite/ssdlite/gen_model.py", line 307,

fcakir commented 4 years ago

In python2 the/ operator is integer division. Use // in python 3.