-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to load an object twice ? It seems that the function set_cp() and set_name() duplicates the category_id #1120
Comments
In blender each object needs to have a unique name. However you can of course set the same category id for multiple objects. Please provide a minimal code example that reproduces your issue. |
Hey, thanks for the nice example. In the standard case, the name of the coco category depends on the order of the objects in the attribute maps. However, you can also set any name you want via the
With that, the coco output should the way you want |
Thanks a lot for the prompt reply. It worked. |
Describe the issue
I want to load an object (PLY file) twice in my environment. Since it is the same object, I want to associate it with same
category_id
andname
. However, it seems that on the second time, it creates a duplicatecategory_id
with a different name (Ending with .001). For example, if I am loading an object XYZ.ply twice, it creates category_id with same index and two names XYZ and XYZ.001. However I want the same category to appear for both the objects.Moreover, I also get the the warning:
Warning! Detected output entries with duplicate keys and paths
What is the best way to load an object twice and generating
coco_annotations
with same category without duplicating it ?Minimal code example
No response
Files required to run the code
No response
Expected behavior
I expect the categoryId not to be duplicated with a duplicate categoryName.
BlenderProc version
v2.7.0
The text was updated successfully, but these errors were encountered: