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

Method load_annotations

diffplanner/datasets/base_dataset.py:59–64  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

57
58
59 def load_annotations(self):
60 """Load annotations from ``ann_file`` to ``data_infos``"""
61 self.data_infos = []
62 for line in open(self.ann_file, 'r').readlines()[:]:
63 line = line.strip()
64 self.data_infos.append(self.load_anno(line))
65
66
67 def prepare_data(self, idx: int):

Callers 1

__init__Method · 0.95

Calls 1

load_annoMethod · 0.95

Tested by

no test coverage detected