jinyu121 / DW2TF

Darknet Weights to TensorFlow
GNU General Public License v3.0
219 stars 73 forks source link

default value to pad #49

Open nadaved1 opened 4 years ago

nadaved1 commented 4 years ago

Hi, When the pad is not mentioned in the cfg file, like in the enet-coco.cfg the conversion fails, I think that something like this would cover it safely: pad = 'valid' if 'pad' in param and param['pad'] == '1': pad = 'same'