Closed MiriamJo closed 2 years ago
Update:
I printed out the shape of the linemor preprocessed masks. They are all in shape (480,640,3) whereas my generated masks all just have the shape of (480, 640). What am I doing wrong and how can I achieve this shape of the np array for my own data?
I generated the data using bop_toolkit.
I finally figured it out. I needed to make sure my mask images are converted to RGB. So in fuse.py
Line 223 i added:
with Image.open(msk_pth).convert('RGB') as li:
Now It has the same shape and works as expected.
I adapted linemod dataset to have my own objects. I generated renderes data and am now trying to generate fused data. However, when I try to run the fuse.py with following execution command:
python3 fuse.py --cls ape --fuse_num 5
The following error occurs:I thought it was just my own objects, but this output is from trying to execute the script with "ape", which is a linemod original. Is there something wrong with tqdm? I really can't figure out what causes the error.