python 解析prototxt文件

安装

pip install prototxt_parser

代码

from prototxt_parser.prototxt_parser_main import parse

def read_prototxt(file)->dict:
    with open(file, 'r') as f:
        return parse(f.read())
posted @ 2021-12-30 17:37  不能说的秘密  阅读(900)  评论(0编辑  收藏  举报