T2I-Adapter / load_json.py
Adapter's picture
first upload
fb6c2da
raw
history blame
139 Bytes
import json
def load_json(path):
with open(path,'r',encoding = 'utf-8') as fp:
data = json.load(fp)
return data['images']