DLR-RM / DLR-RM/BlenderProc

The number of instance labels in the scene cannot exceed 255

Open
#952 2 comments 0 reactions 0 assignees View on GitHub
first answer provided question
Dominant language
Python
Stars
3.7k
Forks
518
PR merge metrics
No merged PRs in 30d

Description

### Describe the issue

I want to render the instance labels of a certain type of object in the scene, but when the number of objects exceeds 255, segmap can't save the labels of each instance because his encoding is int8, and it can only save the labels of 255 different instances at most.

### Minimal code example

```python
#load sampled objs...
bproc.renderer.enable_segmentation_output(map_by=['instance','class','name'])
#init light and camera..
data=bpro.renderer.render()
#save res...
```

### Files required to run the code

_No response_

### Expected behavior

Saving even when the number of instances exceeds 255

### BlenderProc version

V2.5.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.