compute_bn_statistics.py 文件源码

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

项目:CityHorizon 作者: CityStreetWander 项目源码 文件源码
def extract_dataset(net_message):
    assert net_message.layer[0].type == "DenseImageData"
    source = net_message.layer[0].dense_image_data_param.source
    with open(source) as f:
        data = f.read().split()
    ims = ImageCollection(data[::2])
    labs = ImageCollection(data[1::2])
    assert len(ims) == len(labs) > 0
    return ims, labs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号