encounter1997 / SFA

Official Implementation of "Exploring Sequence Feature Alignment for Domain Adaptive Detection Transformers"
Apache License 2.0
93 stars 7 forks source link

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

Closed cwnuyangyan closed 3 years ago

cwnuyangyan commented 3 years ago

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 commented 3 years ago

https://github.com/encounter1997/SFA/blob/3a0725f6dde33b10d6fc471c079973a9e6f10c52/main_da.py#L102 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 commented 3 years ago

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