INNER CODE UNIT · Python

get_encoded_dataset

nv-tlabs/ATISS · scene_synthesis/datasets/__init__.py:65

def get_encoded_dataset(
    config,
    filter_fn=lambda s: s,
    path_to_bounds=None,
    augmentations=None,
    split=["train", "val"]
):
    _, encoding = get_dataset_raw_and_encoded(
        config, filter_fn, path_to_bounds, augmentations, split
    )
    return encoding


def filter_function(config, split=["train", "val"], without_lamps=False):
    print("Applying {} filtering".format(config["filter_fn"]))

    if config["filter_fn"] == "no_filtering":
        return lambda s: s

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…