WSSS_ResNet50 / tools /general /json_utils.py
kittendev's picture
Upload 176 files
c20a1af verified
raw
history blame
341 Bytes
# Copyright (C) 2020 * Ltd. All rights reserved.
# author : Sanghyeon Jo <[email protected]>
import json
def read_json(filepath):
with open(filepath, 'r') as f:
data = json.load(f)
return data
def write_json(filepath, data):
with open(filepath, 'w') as f:
json.dump(data, f, indent = '\t')