blenderproc.python.modules.loader.Pix3DLoaderModule module

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

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

This loads an object from Pix3D based on the given category of objects to use.

From these objects one is randomly sampled and loaded.

As for all loaders it is possible to add custom properties to the loaded object, for that use add_properties.

Finally it sets all objects to have a category_id corresponding to the void class, so it wouldn’t trigger an exception in the SegMapRenderer.

Note: if this module is used with another loader that loads objects with semantic mapping, make sure the other module is loaded first in the config file.

Configuration:

Parameter Description Type
data_path The path to the Pix3D folder. Default: ‘resources/pix3d’. string
category The category to use for example: ‘bed’, check the data_path/model folder for more categories. Available: [‘bed’, ‘bookcase’, ‘chair’, ‘desk’, ‘misc’, ‘sofa’, ‘table’, ‘tool’” , ‘wardrobe’] string
run()[source]