Hello,
I am trying to generate a synthetic dataset and I have some objects where I explicitly randomize the color but for others I would rather not randomize the color, however, the replicator still randomizes the color.
I provide the code snipped below :
def get_shapes():
shapes = rep.get.prims(semantics=[('class', 'UO')])
with shapes:
rep.randomizer.color(colors=rep.distribution.uniform((0, 0, 0), (1, 1, 1)))
rep.modify.pose(
position=rep.distribution.uniform((-600, 0, -400), (700, 0, 400)),
rotation=rep.distribution.uniform((0, -180, 0), (0, 180, 0)),
scale=rep.distribution.uniform(0.4, 0.8)
)
return shapes.node
def get_rocks():
rocks = rep.get.prims(semantics=[('class', 'rock')])
with rocks:
rep.modify.pose(
position=rep.distribution.uniform((-600, 0, -400), (700, 0, 400)),
rotation=rep.distribution.uniform((0, -180, 0), (0, 180, 0)),
scale=rep.distribution.uniform(1, 1)
)
return rocks.node
The problem is my rocks. Please help :)