habitat.datasets.rearrange.samplers.scene_sampler.MultiSceneSampler class

Uniform sampling from a set of scenes.


def num_scenes(self) -> int
Get the number of scenes available from this sampler. Total number of unique scenes available in all provided scene sets.
def sample(self) -> str
Sample a random scene from the configured set.
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, scenes: typing.List[str]) -> None