process_cities.py 文件源码

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

项目:learning-to-see-by-moving 作者: pulkitag 项目源码 文件源码
def resize_raw_images(prms):
    rawNames,_,_ = get_imnames(prms, isRaw=True)
    tgNames,_,_    = get_imnames(prms)
    for rn,tn in zip(rawNames, tgNames):
        im = scm.imread(rn)
        im = scm.imresize(im, [320, 480])
        dName = os.path.dirname(tn)
        if not os.path.exists(dName):
            os.makedirs(dName)
        scm.imsave(tn, im)

##
# Write pairs file
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号