pyskl/datasets/pipelines/formatting.py
定位到FormatShape类
class FormatShape(object):
def __call__(self, results):
"""Performs the FormatShape formating.
Args:
results (dict): The resulting dict to be modified and passed
to the next transform in pipeline.
"""
这段注释描述了 __call__ 方法的功能,即对输入数据进行格式化,确保它们符合模型的输入要求。
pyskl/pyskl/datasets/pipelines/formatting.py at main · kennymckormick/pyskl · GitHub