Robert-JunWang / Pelee

Pelee: A Real-Time Object Detection System on Mobile Devices
Apache License 2.0
885 stars 254 forks source link

question in layer_utils.py line 125 #57

Open 644517236 opened 5 years ago

644517236 commented 5 years ago
def UnpackVariable(var, num):
  assert len > 0
  if type(var) is list and len(var) == num:
    return var
  else:
    ret = []
    if type(var) is list:
      assert len(var) == 1
      for i in range(0, num):
        ret.append(var[0])
    else:
      for i in range(0, num):
        ret.append(var)
    return ret

when i run python examples/pelee/eval_voc.py ,TypeError: '>' not supported between instances of 'builtin_function_or_method' and 'int' how can i solve this problem @Robert-JunWang

Robert-JunWang commented 5 years ago

This part of the code is from SSD and only tested on python 2.7. Please make sure you can run SSD without any errors.