MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / load_annotations

Method load_annotations

mogen/datasets/base_dataset.py:63–68  ·  view source on GitHub ↗

Load annotations from ``ann_file`` to ``data_infos``

(self)

Source from the content-addressed store, hash-verified

61 pass
62
63 def load_annotations(self):
64 """Load annotations from ``ann_file`` to ``data_infos``"""
65 self.data_infos = []
66 for line in open(self.ann_file, 'r').readlines():
67 line = line.strip()
68 self.data_infos.append(self.load_anno(line))
69
70 def prepare_data(self, idx: int):
71 """"Prepare raw data for the f'{idx'}-th data."""

Callers 1

__init__Method · 0.95

Calls 1

load_annoMethod · 0.95

Tested by

no test coverage detected