obman_render icon indicating copy to clipboard operation
obman_render copied to clipboard

problem with 'obj_texture'

Open caramel-jiao opened this issue 2 years ago • 7 comments

I read the .pkl meta file of the obman release dataset and looked at the texture image of the 'obj_texture' path, but found that it does not correspond to the texture of rendered image in rgb_obj.

I want to know how can I obtain correct texture images of dataset samples? Thanks.

texture

caramel-jiao avatar Jul 02 '23 09:07 caramel-jiao

Did you solve it, I encountered the same problems.

strongBrave avatar Sep 14 '25 03:09 strongBrave

No I haven't 😥. But I have tried to directly adopt my own rendered images with such textures for some pretraining, and found it also helpful for my tasks.

caramel-jiao avatar Sep 14 '25 05:09 caramel-jiao

Cause I am right now doing the inverse engineering, which is restore the 3D texture model from the obj file and texture picture in the meta-info. However, due to the problem, this doesn't work.

strongBrave avatar Sep 16 '25 06:09 strongBrave

Perhaps using the data obtained by re-rendering according to the existing annotation can help alleviate this problem for you. I may not have any other better ideas either.😣

caramel-jiao avatar Sep 16 '25 06:09 caramel-jiao

Can you specify what's the meaning of 're-rendering', I think i don't undetstand.

strongBrave avatar Sep 16 '25 07:09 strongBrave

Sorry maybe I didn't explain clearly. It can be understood as following the guidelines of the current repo (https://github.com/hassony2/obman_render?tab=readme-ov-file#launch-) to generate obman dataset from scratch according to the original workflow. In this way, because both the texture and background are obtained from the files you specify, you can ensure that the data you render has the correct annotations.

caramel-jiao avatar Sep 16 '25 07:09 caramel-jiao

Cause I am right now doing the inverse engineering, which is restore the 3D texture model from the obj file and texture picture in the meta-info. However, due to the problem, this doesn't work.

I think I found the reason. https://github.com/hassony2/obman_render/blob/d64c9a6f1f2b85349b7fcb03ed588a64374ce558/blender_grasps.py#L226-L245 https://github.com/hassony2/obman_render/blob/d64c9a6f1f2b85349b7fcb03ed588a64374ce558/blender_grasps.py#L267-L268 You can see these lines apply each mat with corresponding texture picture, but the meta_info only save the path of the last texture picture. Consequently, the object's appearance is determined by the combined effect of all material textures, which explains why the rendered image's texture differs from the single texture image referenced in the saved path.

strongBrave avatar Sep 16 '25 08:09 strongBrave