Comments (1)
Cityscapes style: Similar to *_instanceIds.png
in Cityscapes dataset, those png file are Height * Width * 16bit. Each pixel value x
means that the pixel belongs to the instance ID is x
.
For instance ID x
, the corresponding categories_id is x//1000
. For example, instance ID 3002
, means it's categories_id id is 3002//1000 = 3
Thus, you should set your object with object["inst_id"] = categories_id * 1000 + index
Then
result = bpycv.render_data()
cv2.imwrite("demo-inst.png", np.uint16(result["inst"]))
from bpycv.
Related Issues (20)
- Rendering both semantic & instance segmentation maps HOT 1
- how to control the rotation (x-y plane) of an object
- question regarding <add_img_background> HOT 3
- Blender 3.0 support? HOT 3
- demo-inst.png is all zeros? HOT 1
- Easy way to get un occluded segmentation maps? HOT 4
- about stereo HOT 2
- Question about asserting the upper bound of inst_id HOT 6
- 6D poses matrix? HOT 1
- bpycv.render_data error HOT 1
- Changing exposure in HDR? HOT 1
- Instance map incorrect when objects are converted from duplicates HOT 1
- Hello, could you please tell me how to generate such data set through this code? I already have the 3D model as follows. I will show that there is no package bpy HOT 11
- Segmentation with transparent background HOT 5
- HDRI Haven Replaced by Polyhaven HOT 1
- getting a view from multiple cameras HOT 2
- why is orthographic camera not supported? HOT 1
- Installation with Blender 4.0.2 failed HOT 1
- Wrong instance segmentation map with many objects HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpycv.