SceneSampler class
Abstract Class Samples a scene for the RearrangeGenerator.
Methods
- def num_scenes(self)
- Get the number of scenes available from this sampler.
- def sample(self)
- Sample a scene.
- def set_cur_episode(self, cur_episode: int) -> None
- Set the current episode index. Used by some sampler implementations which pivot on the total number of successful episodes generated thus far.
Special methods
- def __format__(self, format_spec, /)
- Default object formatter.
Method documentation
def habitat. datasets. rearrange. samplers. scene_sampler. SceneSampler. __format__(self, format_spec, /)
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.