Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question in layer_utils.py line 125 #57

Open
644517236 opened this issue Dec 10, 2018 · 1 comment
Open

question in layer_utils.py line 125 #57

644517236 opened this issue Dec 10, 2018 · 1 comment

Comments

@644517236
Copy link

644517236 commented Dec 10, 2018

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants