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 __init__(self, scene: str) -> None