Replicator YAML generation renders grids randomly

Following on our conversation from this thread: Randomizing materials for a randomizer instantiated asset

Sometimes when I run the Randomizer YAML it renders perfect frames and other times it adds the grid lines despite changing absolutely nothing in the code.

See attached file.

cc @wilfried.rakow

cc @kit-nvidia-Jen @dennis.lynch

Have you tried removing the grid? Image below shows where to go to turn it off.

kit_1vkYatcqNJ

I am running a container, running headless, no UI

Seems to be a bug in render product

Here are logs for the bugged grids and OK grids. No code change just separate runs.

grid-bad.log (43.2 KB)

grid-ok.log (43.1 KB)

have you tried the snippet to toggle Grid visibility programmatically?

import omni.kit.actions.core

action_registry = omni.kit.actions.core.get_action_registry()
action = action_registry.get_action("omni.kit.viewport.actions", "toggle_grid_visibility")
action.execute()

however, i can’t confirm whether it’s potential bugs you may be experiencing or not; i’ll defer to the mods/devs on this.

ultimately, i think it’s because the ground/warehouse floor geom shares the world grid Z axis value (overlapping). so the cleanest (?) solution potentially might be to move the scene up. that said, i am not a frequent user of SDG, so it’s just a workaround that could be worth trying.

My workflow is Replicator YAML so no python scripts are possible - unless you can show me how?

I am running

/isaac-sim/runheadless.native.sh --no-window --/omni/replicator/replicatorYaml/yamlPath=my.yaml

This is so we queue multiple pods in kubernetes to do generations one by one.

I think the grid is visible due to the error in the grid-bad.log linked above.

It says it can’t find prims. Funny, input YAML is exactly the same!

cc @dennis.lynch

Actualy I re-ran it and it gave me the errors but the grid is not there. Perhaps it IS what you are saying @Simplychenable

I believe the error is happening with the empty get.prims

But you can also try setting one or both of these on the command-line

--/app/viewport/grid/enabled=false
--/app/viewport/defaults/guide/grid/visible=false

@dennis.lynch thanks for the args, I will try it out.

With regards to the error, there is no empty get.prims in my file: https://github.com/Surveily/synthetic-data-examples/blob/feature/custom/omni.replicator_yaml/warehouse.yaml

@dennis.lynch adding those two arguments did not help…

    /isaac-sim/runheadless.native.sh  --no-window \
                                      --/app/viewport/grid/enabled=false \
                                      --/app/viewport/defaults/guide/grid/visible=false \
                                      --/omni/replicator/replicatorYaml/yamlPath=warehouse.yaml

I will file a bug internally and follow-up on this.

Hi, following-up.

  1. Does this only happen on the first-frame of output?
  2. Regardless, I believe I have a fix for this in our next version of Replicator.

@dennis.lynch

  1. It happens randomly. Depends on the run, it draws grid on all output frames or on none of them.
  2. Awesome!

Still an issue on nvcr.io/nvidia/isaac-sim:2023.1.1 @dennis.lynch

cc @pcallender @wilfried.rakow

@Turowicz We have an internal fix. It should be in the next IsaacSim release. (though I can’t put a timeline on that)