Collect¶ class mmcls.datasets.transforms.Collect(keys)[源代码]¶ Collect and only reserve the specified fields. Required Keys: *keys Deleted Keys: All keys except those in the argument *keys. 参数 keys (Sequence[str]) – The keys of the fields to be collected.