NVIDIA-Omniverse / kit-extension-sample-defectsgen

Reference Extension to apply defects for synthetic data generation
Apache License 2.0
23 stars 4 forks source link

AttributeError: Module ‘omni.replicator.core.scripts.create’ has no attribute ‘projection_material’ #7

Open abetatos opened 2 months ago

abetatos commented 2 months ago

I am trying to reproduce the tutorial of Defect Detection Model: Playlist | SERIES - Replicator 1.10 Workflow Tutorial | NVIDIA On-Demand

It uses the kit-extension-sample-defectsgen found on: GitHub - NVIDIA-Omniverse/kit-extension-sample-defectsgen: Reference Extension to apply defects for synthetic data generation

I follow all the steps but when I recreate the graph and then clic on preview nothing shows up. In the console I observe 4 logs:

2024-06-12 18:52:57 [Warning] [omni.example.defects.utils] No valid prim at path given: /Replicator 2024-06-12 18:52:57 [Warning] [omni.replicator.core.scripts.utils.utils] module ‘omni.replicator.core.scripts.create’ has no attribute ‘projection_material’ 2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:translate is overridden in a stronger layer (Root Layer). 2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:scale is overridden in a stronger layer (Root Layer). 2024-06-12 18:52:57 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:rotateXYZ is overridden in a stronger layer (Root Layer).

While if I try to run for 1 time to generate an output image I see in the console:

2024-06-12 18:53:13 [Warning] [omni.example.defects.utils] No valid prim at path given: /World/Looks/ProjectPBRMaterial 2024-06-12 18:53:13 [Warning] [omni.example.defects.utils] No valid prim at path given: /World/Body_Panels/Good/Mesh_704/Projection 2024-06-12 18:53:14 [Warning] [omni.replicator.core.scripts.utils.utils] module ‘omni.replicator.core.scripts.create’ has no attribute ‘projection_material’ 2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:translate is overridden in a stronger layer (Root Layer). 2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:scale is overridden in a stronger layer (Root Layer). 2024-06-12 18:53:14 [Warning] [omni.kit.widget.layers.layer_model] /Replicator/Cube_Xform.xformOp:rotateXYZ is overridden in a stronger layer (Root Layer).

Setup:

Windows 11 Ryzen 7 7000X RTX 4070 12GB VRAM Code version: 2022.3.3

Full console log: kit_20240612_205043.log

Seems like there is a bug or at least some version problems:

image

I would say the error originates there: exts\omni.example.defects\omni\example\defects\replicator_defect.py but Im not sure at all

If you need anything else please let me know!

ahmedlocalhost commented 1 month ago

try using the newest version of Omni Code 2023.1.1

abetatos commented 1 month ago

I already tried that but I didn't worked. (It even raised more errors)

In the developers blog someone suggested me to try Isaac Sim and it worked without any problems.

Thanks for the suggestion!