habitat.datasets.rearrange.samplers.scene_sampler.SingleSceneSampler class

Returns a single provided scene using the sampler API

Methods

def num_scenes(self) -> int
Get the number of scenes available from this sampler. Single scene sampler always has 1 scene.
def sample(self) -> str
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.
def __init__(self, scene: str) -> None

Method documentation

def habitat.datasets.rearrange.samplers.scene_sampler.SingleSceneSampler.__format__(self, format_spec, /)

Default object formatter.

Return str(self) if format_spec is empty. Raise TypeError otherwise.