ethnhe / raster_triangle

A simple renderer with z-buffer for synthesis data generating.
56 stars 21 forks source link

An error occurred when running the rgbd_render.py #8

Closed peppa114 closed 3 years ago

peppa114 commented 3 years ago

An error occurred when running the rgbd_renderer.py , the error message is as follows: Screenshot from 2021-05-20 15-17-34 I need the processing results of Linemod set to be used in FFB6D. Looking forward for your reply, thank you.

liupenglei commented 3 years ago

An error occurred when running the rgbd_renderer.py , the error message is as follows: Screenshot from 2021-05-20 15-17-34 I need the processing results of Linemod set to be used in FFB6D. Looking forward for your reply, thank you.

Have you solved it ? I meet the same problem. Thank you .

ethnhe commented 3 years ago

It seems that the length of self.bg_img_pth_lst is 0, maybe the path to the background image, the SUN2012pascalformat dataset is not set properly. Follow the README instruction: Download SUN2012pascalformat dataset from here http://groups.csail.mit.edu/vision/SUN/releases/SUN2012pascalformat.tar.gz. Unzip it and link the unzipped folder to this folder:

ln -s path_to_SUN2012pascalformat ./
0xinit commented 3 years ago

hi @ethnhe

But the SUN2012 is a different dataset than LineMod right? So, while implementing this step , we need to generate rendered data using rgbd_renderer.py on LineMod dataset... and that gives an error.

ethnhe commented 3 years ago

Yes, SUN2012 is an RGB-only dataset for background generation. We randomly sample an image from SUN2012 and paste the foreground to that background. The related code is here from Line 170 to 197.

0xinit commented 3 years ago

I got the idea of randomly sampling an image from SUN2012. But I get the same issue when I do it for Linemod dataset.

What I have done as of now is soft linked the dataset by ln -s path_to_linemod_dataset ffb6d/dataset/linemod/

What am I doing wrong here? any ideas? I am trying to train ffb6d model, but first I need raster_trianle script to render data, right?

ethnhe commented 3 years ago

Follow the README in this repo to set up and generate synthesis data

0xinit commented 3 years ago

Sorry to disturb you again. I did exactly as the README suggested but the Linemod dataset and rgbd_renderer file are giving me this error mentioned above:

Screenshot from 2021-08-31 01-37-08

the fuse.py works fine, but not the rgbd_renderer. Any suggestions?