blenderproc.python.modules.loader.SceneNetLoaderModule module

class blenderproc.python.modules.loader.SceneNetLoaderModule.SceneNetLoaderModule(config)[source]

Bases: blenderproc.python.modules.loader.LoaderInterface.LoaderInterface

Loads all SceneNet objects at the given “file_path”.

The textures for each object are sampled based on the name of the object, if the name is not represented in the texture folder the unknown folder is used. This folder does not exists, after downloading the texture dataset. Make sure to create and put some textures, you want to use for these instances there.

All objects get “category_id” set based on the data in the “resources/id_mappings/nyu_idset.csv”

Each object will have the custom property “is_scene_net_obj”.

Configuration:

Parameter Description Type
file_path The path to the .obj file from SceneNet. string
texture_folder The path to the texture folder used to sample the textures. string
unknown_texture_folder The path to the textures, which are used if the the texture type is unknown. The default path does not exist if the dataset was just downloaded, it has to be created manually. Default: ${texture_folder}/unknown string
run()[source]

Run the module, loads all the objects and set the properties correctly (including the category_id)