def compute_metadata(
        self,
        overwrite=False,
        num_workers=None,
        skip_failures=True,
        warn_failures=False,
        progress=None,
    ):
        """Populates the ``metadata`` field of all samples in the collection.

        Any samples with existing metadata are skipped, unless
        ``overwrite == True``.

        Args:
            overwrite (False): whether to overwrite existing metadata
            num_workers (None): a suggested number of threads to use
            skip_failures (True): whether to gracefully continue without
                raising an error if metadata cannot be computed for a sample
            warn_failures (False): whether to log a warning if metadata cannot
                be computed for a sample
            progress (None): whether to render a progress bar (True/False), use
                the default value ``fiftyone.config.show_progress_bars``
                (None), or a progress callback function to invoke instead
        """
        fomt.compute_metadata(
            self,
            overwrite=overwrite,
            num_workers=num_workers,
            skip_failures=skip_failures,
            warn_failures=warn_failures,
            progress=progress,
        )
Populates the ``metadata`` field of all samples in the collection.

        Any samples with existing metadata are skipped, unless
        ``overwrite == True``.

        Args:
            overwrite (False): whether to overwrite existing metadata
            num_workers (None): a suggested number of threads to use
            skip_failures (True): whether to gracefully continue without
                raising an error if metadata cannot be computed for a sample
            warn_failures (False): whether to log a warning if metadata cannot
                be computed for a sample
            progress (None): whether to render a progress bar (True/False), use
                the default value ``fiftyone.config.show_progress_bars``
                (None), or a progress callback function to invoke instead
        
fiftyone/core/collections.py