Continuously growing memory usage when generating data via omniverse replicator


I’m trying to generate some data using replicator, but it’s memory usage keeps increasing and eventually it’s taking up all my memory causing the app to be automatically killed by ubuntu. I would like to know what is causing this and if there is some way I can do to clear the occupied memory or stop the endless memory usage growing.

Here is the script I used:

with rep.new_layer():
    for i in range(50):
        person = rep.randomizer.instantiate(model_list, size=1, mode="reference", use_cache=False)
        with person:
            rep.modify.semantics([("class", "person")])
            rep.modify.attribute("visibility", rep.distribution.choice(["invisible", "inherited"], weights=[0.2, 0.8]))

I’ m using:

  • Issac Sim 2022.2.1
  • Ubuntu 22.04
  • 3080ti laptop (515.86.01)
  • 32GB RAM

The current memory is only enough to generate about 1500 images at once, which is not enough for us to do some AI model training

Any help is appreciated!

Could you provide the rest of the script as well, e.g. the model_list and how you trigger the data acquisition? Best by using props from the default nucleus server that we can test (e.g. /Isaac/Environments/Simple_Warehouse/Props).