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

Fixed bug from concatenating list and iterator #113

Closed swtyree closed 5 months ago

swtyree commented 5 months ago

Hi all,

This is a simple one-line fix in inout.save_ply2. Within the outer map function, it tries to concatenate the list [len(uv)] and the iterator map(float, list(...)), which causes TypeError: can only concatenate list (not "map") to list.

https://github.com/thodan/bop_toolkit/blob/91d9d7051180ba4976eda321ee51a7ea98d65c3c/bop_toolkit_lib/inout.py#L779

To fix it, I simply wrapped the map iterator with a call to list. Can you merge this when you get a chance, so I don't have to reimplement this function myself? Thanks!

--Stephen

thodan commented 5 months ago

Thank you @swtyree !