Update examples/1_load_hugging_face_dataset.py
Co-authored-by: Alexander Soare <alexander.soare159@gmail.com>
This commit is contained in:
parent
b4079a85e6
commit
bae0c216bc
|
@ -44,7 +44,7 @@ print(f"{hf_dataset=}")
|
||||||
print(f"{hf_dataset.features=}")
|
print(f"{hf_dataset.features=}")
|
||||||
|
|
||||||
# display useful statistics about frames and episodes, which are sequences of frames from the same video
|
# display useful statistics about frames and episodes, which are sequences of frames from the same video
|
||||||
print(f"number of samples/frames: {len(hf_dataset)=}")
|
print(f"number of frames: {len(hf_dataset)=}")
|
||||||
print(f"number of episodes: {len(hf_dataset.unique('episode_id'))=}")
|
print(f"number of episodes: {len(hf_dataset.unique('episode_id'))=}")
|
||||||
print(f"average number of frames per episode: {len(hf_dataset) / len(hf_dataset.unique('episode_id')):.3f}")
|
print(f"average number of frames per episode: {len(hf_dataset) / len(hf_dataset.unique('episode_id')):.3f}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue