Datasets:
Improve dataset card and add preview config
Browse files1234561 unmodified line891011121314---configs:- config_name: defaultdata_files:- split: trainpath: data/train-*.tar1 unmodified line# DoomFrameDatasetViZDoom frame/action dataset packaged as WebDataset tar shards.Each sample contains a PNG frame and a paired JSON metadata file withthe policy action, reward, episode, step, and source frame path.12345678910111213141516171 unmodified line192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142---pretty_name: Doom Frame Datasettags:- doom- vizdoom- reinforcement-learning- imitation-learning- webdatasetconfigs:- config_name: previewdata_files:- split: trainpath: data/train-000000.tar- config_name: fulldata_files:- split: trainpath: data/train-*.tar1 unmodified line# DoomFrameDatasetDoomFrameDataset is a ViZDoom frame-action dataset generated from policy rollouts. It is packaged as WebDataset tar shards for streaming training, imitation learning, behavior cloning, and offline reinforcement-learning experiments.The dataset contains RGB game frames paired with the action selected by the rollout policy and per-step metadata such as reward, episode id, step id, terminal flag, and value estimate.## Dataset Size| Config | Files | Samples | Intended use || --- | ---: | ---: | --- || `preview` | 1 shard | ~79k | Hugging Face preview and quick sanity checks || `full` | 31 shards | 2,398,745 | Training and full streaming reads |The packaged dataset is about 68 GB.## Files```textdata/train-000000.tartrain-000001.tar...train-000030.taraction_map.jsonREADME.md```Each tar shard contains paired files with the same numeric key:```text000000000000.png000000000000.json000000000001.png000000000001.json...```The PNG is the game frame. The JSON is the metadata for that frame.## Sample Metadata```json{"action_id": 1,"action_name": "TURN_RIGHT","action_vector": [0.0, 0.0, 0.0, 0.0, 1.0, 0.0],"curriculum_level": 1,"done": false,"episode": 1,"frame_path": "frames/episode_001/step_000000.png","global_step": 0,"reward": 0.0,"source_frame_path": "frames/episode_001/step_000000.png","step": 0,"value": 1.7968196868896484,"webdataset_key": "000000000000"}```See `action_map.json` for the full action id, action name, and action vector mapping.## Load The Preview ConfigUse `preview` when you only want to verify the dataset or inspect examples in the Hugging Face Dataset Viewer.```pythonfrom datasets import load_datasetds = load_dataset("brahmandam/DoomFrameDataset","preview",split="train",streaming=True,)sample = next(iter(ds))print(sample.keys())print(sample["json"])image = sample["png"]```## Stream The Full DatasetUse `full` for training.```pythonfrom datasets import load_datasetds = load_dataset("brahmandam/DoomFrameDataset","full",split="train",streaming=True,)for sample in ds:image = sample["png"]metadata = sample["json"]action_id = metadata["action_id"]break```You can also read the shards directly with WebDataset:```pythonimport webdataset as wdsurls = "https://huggingface.co/datasets/brahmandam/DoomFrameDataset/resolve/main/data/train-{000000..000030}.tar"dataset = (wds.WebDataset(urls).decode("pil").to_tuple("png", "json"))image, metadata = next(iter(dataset))```## NotesThe `preview` config intentionally points to a single shard so the Hub can inspect a small part of the dataset without processing the full 68 GB. For training, use the `full` config.This dataset was generated from automated ViZDoom policy rollouts. It should be treated as gameplay observation/action data, not human demonstrations.
README.md+132-4