How can I get l semantic/label data via replicator api?

Hi experts,
I need to know what is the exactly object picked by randomizer.
For example, I use rep.randomizer.instantiate to pick a ball from /assets/ball/*.usd
And they has been set semantic data by ball type, baseball, basketball, …etc
How can I read the informations by replicator api?
Because I need to use these information to build my dataset for training model.
Any suggestions would be much appriciates, thanks!

Hello @patrickkh_lin! I’ve reached out to the dev team for some help! They should reply shortly.

1 Like

Hello @patrickkh_lin! I have some information for you from the dev team!

I need to know what is the exactly object picked by randomizer.

We don’t currently have that functionality, but it is on our list of features requested

How can I read the informations by replicator api?

That’s a good feature idea

There is a workaround for the first, by doing rep.utils.get_usd_files() and then using python to randomly pick from that list (random.sample ) and then you can know which object you are working with

I will create a feature request for reading information by replicator api

1 Like

A feature request ticket was created from this post. OM-67247: Read information by Replicator API

1 Like

Hello Wendy & dev team,
Replicator is an awesome extension for SDG, We love it!
I’ll try the workaround and looking foward the new feature!
Many thanks for all your assistance!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.