blenderproc.python.loader.ReplicaLoader module

Loads the Replica dataset.

blenderproc.python.loader.ReplicaLoader.load_replica(data_path, data_set_name, use_smooth_shading=False)[source]

Just imports the configured .ply file straight into blender for the replica case.

Parameters:
  • data_path (str) – The path to the data folder, where all rooms are saved.

  • data_set_name (str) – Name of the room (for example: apartment_0).

  • use_smooth_shading (bool) – Enable smooth shading on all surfaces, instead of flat shading.

Return type:

List[MeshObject]

Returns:

The list of loaded mesh objects.

blenderproc.python.loader.ReplicaLoader.load_replica_segmented_mesh(data_path, data_set_name, use_smooth_shading=False)[source]

Loads a segmented replica file

Parameters:
  • data_path (Union[str, Path]) – The path to the data folder, where all rooms are saved.

  • data_set_name (str) – Name of the room (for example: apartment_0).

  • use_smooth_shading (bool) – if set to True all objects loaded, will have smooth shading activated

Return type:

List[MeshObject]

Returns:

The list of loaded and separated mesh objects.