cap_to_obs_tf.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:tea 作者: antorsae 项目源码 文件源码
def load_metadata(md_path):
    data = []
    with open(md_path, 'r') as f:
        reader = csv.DictReader(f)

        for row in reader:
            # convert str to float
            row['l'] = float(row['l'])
            row['w'] = float(row['w'])
            row['h'] = float(row['h'])
            if 'rear_gps_l' in row.keys(): # release 3 format
                row['rear_gps_l'] = float(row['rear_gps_l'])
                row['rear_gps_w'] = float(row['rear_gps_w'])
                row['rear_gps_h'] = float(row['rear_gps_h'])
            else: # release2 format
                row['rear_gps_l'] = float(row['gps_l'])
                row['rear_gps_w'] = float(row['gps_w'])
                row['rear_gps_h'] = float(row['gps_h'])
            data.append(row)
    return data
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号