Files
hao-ai-lab-FastVideo/pretty_json.py
T

11 lines
217 B
Python

import json
import os
path = "data/outputs/BW_Testrun/checkpoint-0/config.json"
with open(path, 'r') as f:
data = json.load(f)
# save with indent
with open(path, 'w') as f:
json.dump(data, f, indent=4)