赞
踩
-
- import json
- def read_json(cfg):
- scale = cfg['scale']
- H, W = cfg['patch_size'], cfg['patch_size']
- poem = cfg['poem']
-
- print(scale)
- print(poem)
- print(H)
-
- path_setjson = open('../DetectAnomaly/anomalyConfig.json', 'r')
- cfg = json.load(path_setjson)
- path_setjson.close()
- read_json(cfg)
-
-

json文件
{ "full_resolution": 1, "SSIM_CONFIG": "FOLLOW", "scale": 1, "patch_size": 8, "poem": "simle is good", "anomaly_method": "ssim", "move_size": 0 }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。