aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.

Home Page:https://git.io/AdelaiDet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why didn't use the code to solve AttributeError: 'Beziers' object has no attribute '__len__'

cqray1990 opened this issue · comments

add the code in bezisers
def len(self):
return self.tensor.shape[0]

@cqray1990 This may occur due to a wrong version of detectron2 has been installed. Please refer to #455.

@Yuliang-Liu i read this issues

In adet/structures/beziers.py add the following magic method:

def len(self):
return self.tensor.shape[0]

this is solve ways did not need specific veison detectron2