-
Hi again, seg_data=bproc.renderer.render_segmap(map_by=(["instance","class","name"])) in Line 64 colors, num_splits_per_dimension, objects = _colorize_objects_for_instance_segmentation(objs_with_mats,
use_alpha_channel,
render_colorspace_size_per_dimension) objects variable contains all Objects i need an annotation for. But in Line 115 to ~120 max_id gets assigned 3 - even if i have 10 Objects. segmap = Utility.map_back_from_equally_spaced_equidistant_values(segmentation,
num_splits_per_dimension,
render_colorspace_size_per_dimension)
print(segmap)
segmap = segmap.astype(optimal_dtype)
print(segmap)
object_ids = np.unique(segmap)
print("object_ids",object_ids)
max_id = np.max(object_ids)
print("MAXID",max_id) so object_ids=[0,1,2,3] and len(objects)=10 i.e. for object_id in object_ids:
current_obj = objects[object_id] My "high_id" numbers are not included in everything what follows. Why does segmap ignore my other objects? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
Hey, sorry I can't completely follow your problem. Can you please try to describe your problem from another perspective? Don't look into the code. Tell me what you put in and what you expect it puts out. Then I can tell you how you get there.
Are they in the image? Only objects present in the image, will be rendered and end up in the segmap, if they are not visible the value does not appear in the final image.
I don't fully get what you mean, only visible objects are rendered, as I said if the object is not visible it can not be rendered. PS: You can also save all other values to the segmap: bproc.renderer.render_segmap(map_by=(["instance","class","name", "cp_classname"])) Best, |
Beta Was this translation helpful? Give feedback.
-
I think i found something! i added my render settings(and some other parts of my code before,checked after every paste) and only 1 of 7 elements are annotated now.
|
Beta Was this translation helpful? Give feedback.
-
Weekend-Time. Have a nice one! I hope this is the only cause of the Issue. |
Beta Was this translation helpful? Give feedback.
I think i found something!
i added my render settings(and some other parts of my code before,checked after every paste) and only 1 of 7 elements are annotated now.
The picture i get looks like this:
Before all objects were annotated: