File size: 479 Bytes
7bd850b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import json
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams

# 设置全局字体为 Times New Roman
plt.rcParams['font.family'] = 'serif'

# 加载 JSON 数据
json_path = "/Users/gongsitong/Desktop/dataset_processing/Ref_LVOS/video_exp.json"
with open(json_path, 'r') as f:
    json_dict = json.load(f)["videos"]

for video_name, video_dict in json_dict.items():
    for exp_id, exp_dict in video_dict["expressions"].items():
        exp_dict