Gen6D icon indicating copy to clipboard operation
Gen6D copied to clipboard

custom error

Open huangqiusheng opened this issue 2 years ago • 4 comments

Hi, when I try to use this network to estimate pose and scale for co3d's car class, I get an error. Although I tried with the provided mouse sample, it still doesn't work. 221663297338_ pic

huangqiusheng avatar Sep 16 '22 03:09 huangqiusheng

Hi, this CustomDatabase has the center in this line. https://github.com/liuyuan-pal/Gen6D/blob/2d1cfe13fe383954b5da2040f4225118827257f3/dataset/database.py#L264 It is under the condition https://github.com/liuyuan-pal/Gen6D/blob/2d1cfe13fe383954b5da2040f4225118827257f3/dataset/database.py#L248 If it does not have center, the problem may be the colmap project path is incorrect so the codes cannot read the sparse model.

liuyuan-pal avatar Sep 16 '22 07:09 liuyuan-pal

After viewing code of CustomDatabase, I found CustomDatabase's root inferred from database "custom/mouse". So the colmap project path maybe "data/custom/mouse", instead of "data/custom/mouse_processed" provided in README.

saprrow avatar Sep 20 '22 02:09 saprrow

It depends on which database_name you use. If you use custom/mouse_processed as database_name, it will read data/custom/mouse_processed.

liuyuan-pal avatar Sep 22 '22 02:09 liuyuan-pal

I got the same error when I tried a custom object I modeled using colmap and CloudCompare. I realized that my line self-pose was returning nothing for my model when. The code runs correctly if I replace my images.bin (red arrow) with one already in the GenMOP folder (yellow arrow). What could be the reason why the code returns nothing from my images.bin?

Screenshot 2022-11-22 023014 Screenshot 2022-11-22 023314

alexis-bruneau avatar Nov 22 '22 07:11 alexis-bruneau