@classmethod
    def load(cls, path):
        with open(path, 'r') as f:
            meta = json.load(f)
            object_names = meta.get('object_names', None)
            db = ObjectDB(object_names=object_names)
            for f in meta['frames']:
                db.add_frame(Frame.from_dict(f))
            if 'data_file' in meta:
                data = loadmat(os.path.join(os.path.dirname(path),
                                            meta['data_file']))
                db.histos = [data[feat] for feat in FEATURES]
                db.histos_by_frame = [data['by_frame_' + feat]
                                      for feat in FEATURES]
            return db
dataset/ETHPy150Open omangin/multimodal/multimodal/db/models/objects.py/ObjectDB.load/original