I am trying to create synthetic data with Replicator. For this I wrote a script to set up the replicator scene, after running the script I run Replicator. The script loads a “main object” which will be annotated and for distraction I load some distractor objects with rep.randomizer.instantiate(rep.utils.get_usd_files(PROPS, recursive=True), size=size, mode=‘scene_instance’)
Replicator runs perfectly if I dont load distractor objects. As soon as I try to generate data with distractor objects Code crashes… Sometimes during the first frame, sometimes after a few. Sometimes even if I just preview a frame.
I have a background in Rendering and not in coding so maybe I oversee something obvious. Would be nice if somebody could help me troubleshooting.
If possible I would not like to share the script public, even if it is not rocket science.
BUT: I discovered what seemed to be the cause of the crash.
I used rep.randomizer.instantiate(rep.utils.get_usd_files(PROPS, recursive=True), size=size, mode=‘scene_instance’) for creating my distractor objects. When changing the mode to ‘point_instance’ replicator runs without a problem. I worked with like 10 distractor objects so I assumed scene_instance should not be a problem.
The log doesn’t appear to have a crash report in it. If you’re able to catch a log with a crash report in it, that would be ideal for debugging on our side. The next version of code may also help address this. Will circle back when its available.
Hey!
Crash did not happen again but I have some problems with the new version 2022.2.0
My script does not work correctly anymore, there is something messed up with the scale of the objects I load. Everythin is much too big. Do you already know about such Issues or should I open a new thread?