class documentation

class ComputeMetadataCommand(Command): (source)

View In Hierarchy

Populates the metadata field of all samples in the dataset.

Examples:

# Populate all missing `metadata` sample fields
fiftyone utils compute-metadata <dataset-name>

# (Re)-populate the `metadata` field for all samples
fiftyone utils compute-metadata <dataset-name> --overwrite
Static Method execute Executes the command on the given args.
Static Method setup Setup the command-line arguments for the command.
@staticmethod
def execute(parser, args): (source)

Executes the command on the given args.

Parameters
parserthe argparse.ArgumentParser instance for the command
argsan argparse.Namespace instance containing the arguments for the command
@staticmethod
def setup(parser): (source)

Setup the command-line arguments for the command.

Parameters
parseran argparse.ArgumentParser instance