You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dribble/check.py

14 lines
421 B
Python

1 month ago
import pickle
# 加载并查看 pkl 文件
def load_and_display_observations(file_path):
with open(file_path, 'rb') as f:
observations = pickle.load(f)
# 打印观测值
for i, obs in enumerate(observations):
print(f"Observation {i + 1}: {obs}")
print(type(observations))
# 使用函数查看指定的 pkl 文件
load_and_display_observations('scripts/gyms/dribble_expert_data.pkl')