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

object of type 'int' has no len() #1

Closed
cwnuyangyan opened this issue Sep 23, 2021 · 2 comments
Closed

object of type 'int' has no len() #1

cwnuyangyan opened this issue Sep 23, 2021 · 2 comments

Comments

@cwnuyangyan
Copy link

I run this demo, but face a error in the line of 673 of deformable_detr.py,
domain_levels += len(args.hda)
args.hda is int, so Exception has occurred: TypeError object of type 'int' has no len()

@encounter1997
Copy link
Owner

SFA/main_da.py

Line 102 in 3a0725f

parser.add_argument('--hda', default=None, type=int, nargs='+',

With nargs='+', args.hda should be a list if it's not None.

Please provide more details about your running command, so I can better understand your issue.

@encounter1997 encounter1997 reopened this Sep 23, 2021
@encounter1997
Copy link
Owner

I will close this issue if you don't have any further questions.

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