thodan / bop_toolkit

A Python toolkit of the BOP benchmark for 6D object pose estimation.
http://bop.felk.cvut.cz
MIT License
376 stars 135 forks source link

ValueError: Only triangular faces are supported. #80

Closed zhhiyuan closed 1 year ago

zhhiyuan commented 1 year ago

I want to use calc_gt_masks.py to generate masks for the custom data. When loading the object model, it read the ply data using inout.load_ply function, however showing ValueError: Only triangular faces are supported. Can you give me some advice on converting my ply model to the triangular faces ply model?

zhhiyuan commented 1 year ago

Problem solved! I annotated the raise triangular error code. By using this simple method, I get the mask I wanted.

MoTahoun commented 10 months ago

Hi @zhhiyuan

Could you please tell me the steps or the modifications that you have done to the code that solve your issue as I am facing the same error "ValueError: Only triangular faces are supported.".

Thanks in advance.

zhhiyuan commented 10 months ago

@MoTahoun It's been a long time and I've forgotten the details, but maybe what you need to do is locate the code where the error occurred and annotated it.