why didn't use the code to solve AttributeError: 'Beziers' object has no attribute '__len__'
cqray1990 opened this issue · comments
cqray1990 commented
add the code in bezisers
def len(self):
return self.tensor.shape[0]
Yuliang Liu commented
@cqray1990 This may occur due to a wrong version of detectron2 has been installed. Please refer to #455.
cqray1990 commented
@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