Sequence
int64 1
25.2k
| Time
int64 1
858M
| File
stringclasses 830
values | RangeOffset
int64 0
2.21M
| RangeLength
int64 0
168k
| Text
stringlengths 1
4.7M
⌀ | Language
stringclasses 20
values | Type
stringclasses 9
values |
|---|---|---|---|---|---|---|---|
300
| 330,605
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[25;232H
| null |
terminal_output
|
301
| 331,652
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[25;232H
| null |
terminal_output
|
302
| 332,700
|
TERMINAL
| 0
| 0
|
[1;227H5[4;59H10[25;232H
| null |
terminal_output
|
303
| 333,750
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[25;232H
| null |
terminal_output
|
304
| 334,799
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[25;232H
| null |
terminal_output
|
305
| 335,896
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[25;232H
| null |
terminal_output
|
306
| 336,899
|
TERMINAL
| 0
| 0
|
[1;226H50[4;60H4[25;232H
| null |
terminal_output
|
307
| 337,952
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[25;232H
| null |
terminal_output
|
308
| 339,007
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[25;232H
| null |
terminal_output
|
309
| 340,840
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[25;232H
| null |
terminal_output
|
310
| 341,225
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[25;232H
| null |
terminal_output
|
311
| 342,246
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[25;232H
| null |
terminal_output
|
312
| 343,223
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H20[25;232H
| null |
terminal_output
|
313
| 344,271
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[25;232H
| null |
terminal_output
|
314
| 345,325
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[25;232H
| null |
terminal_output
|
315
| 346,363
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[25;232H
| null |
terminal_output
|
316
| 347,466
|
TERMINAL
| 0
| 0
|
[1;224H3:00[4;60H4[25;232H
| null |
terminal_output
|
317
| 348,507
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[25;232H
| null |
terminal_output
|
318
| 349,503
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[25;232H
| null |
terminal_output
|
319
| 349,512
|
TERMINAL
| 0
| 0
|
[25;1H[?1049l[23;0;0t\r[?1l>]0;tum_ind3695@hkn1993:~/projects/jafar]633;D;0
| null |
terminal_output
|
320
| 353,419
|
TERMINAL
| 0
| 0
|
queue
| null |
terminal_command
|
321
| 353,470
|
TERMINAL
| 0
| 0
|
]633;E;2025-06-25 10:23:06 queue;a9a4de27-e0e0-4f7a-a81f-6ae3e98df676]633;C
| null |
terminal_output
|
322
| 353,531
|
TERMINAL
| 0
| 0
|
[?1049h[22;0;0t[1;25r(B[m[4l[?7h[H[2JEvery 1.0s: squeue --me[1;188Hhkn1993.localdomain: Wed Jun 25 10:23:06 2025[3;14HJOBID PARTITION NAME USER ST\tTIME NODES NODELIST(REASON)[4;12H3289577 accelerat train_dy tum_ind3 R 14:46:30\t 1 hkn0712[5;12H3290195 cpuonly mp4_to_n tum_ind3 PD\t0:00\t 1 (Priority)[25;232H
| null |
terminal_output
|
323
| 354,583
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[25;232H
| null |
terminal_output
|
324
| 354,696
|
TERMINAL
| 0
| 0
|
[25;1H[?1049l[23;0;0t\r[?1l>]0;tum_ind3695@hkn1993:~/projects/jafar]633;D;0
| null |
terminal_output
|
325
| 365,654
|
utils/preprocess.py
| 0
| 0
|
import dm_pix as pix\nimport einops\nimport jax\nimport jax.numpy as jnp\n\n\ndef patchify(videos: jax.Array, size: int) -> jax.Array:\n B, T, H, W, C = videos.shape\n x = jnp.pad(videos, ((0, 0), (0, 0), (0, -H % size), (0, -W % size), (0, 0)))\n return einops.rearrange(\n x, "b t (hn hp) (wn wp) c -> b t (hn wn) (hp wp c)", hp=size, wp=size\n )\n\n\ndef unpatchify(patches: jax.Array, size: int, h_out: int, w_out: int) -> jax.Array:\n h_pad = -h_out % size\n hn = (h_out + h_pad) // size\n x = einops.rearrange(\n patches,\n "b t (hn wn) (hp wp c) -> b t (hn hp) (wn wp) c",\n hp=size,\n wp=size,\n hn=hn,\n )\n return x[:, :, :h_out, :w_out]\n
|
python
|
tab
|
326
| 368,493
|
utils/preprocess_dataset.py
| 0
| 0
|
from dataclasses import dataclass\n\nimport tensorflow as tf\nimport numpy as np\nimport logging\nimport tyro\nfrom pathlib import Path\n\nlogging.basicConfig(level=logging.INFO)\n\n\n@dataclass\nclass Args:\n source_data_dir: str = "data/coinrun_episodes"\n output_tfrecords_dir: str = "data_tfrecords"\n num_shards: int = 50\n\n\nargs = tyro.cli(Args)\n\n\ndef _bytes_feature(value):\n if isinstance(value, type(tf.constant(0))):\n value = value.numpy()\n return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))\n\n\ndef _int64_feature(value):\n return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))\n\n\ndef create_tfrecord_example(episode_numpy_array):\n feature = {\n "height": _int64_feature(episode_numpy_array.shape[1]),\n "width": _int64_feature(episode_numpy_array.shape[2]),\n "channels": _int64_feature(episode_numpy_array.shape[3]),\n "sequence_length": _int64_feature(episode_numpy_array.shape[0]),\n "raw_video": _bytes_feature(episode_numpy_array.tobytes()),\n }\n return tf.train.Example(features=tf.train.Features(feature=feature))\n\n\ndef main_preprocess(data_dir_str, output_dir_str, num_shards):\n data_dir = Path(data_dir_str)\n output_dir = Path(output_dir_str)\n output_dir.mkdir(parents=True, exist_ok=True)\n\n metadata = np.load(data_dir / "metadata.npy", allow_pickle=True)\n episode_source_paths = [Path(item["path"]) for item in metadata]\n num_total_episodes = len(episode_source_paths)\n\n if num_shards <= 0:\n raise ValueError("num_shards must be positive.")\n if num_shards > num_total_episodes:\n logging.warning(\n f"Warning: num_shards ({num_shards}) is greater than total episodes ({num_total_episodes}). "\n f"Setting num_shards to {num_total_episodes}."\n )\n num_shards = num_total_episodes\n\n logging.info(\n f"Preparing to write {num_total_episodes} episodes to {num_shards} TFRecord shards in {output_dir}..."\n )\n\n output_filenames = [\n str(output_dir / f"shard-{i:05d}-of-{num_shards:05d}.tfrecord")\n for i in range(num_shards)\n ]\n writers = [tf.io.TFRecordWriter(filename) for filename in output_filenames]\n\n writer_idx_for_episode = 0\n try:\n for i, npy_path in enumerate(episode_source_paths):\n if i % 100 == 0 and i > 0:\n logging.info(f" Processed {i}/{num_total_episodes} episodes...")\n try:\n episode_data = np.load(npy_path)\n tf_example = create_tfrecord_example(episode_data)\n\n current_writer = writers[writer_idx_for_episode]\n current_writer.write(tf_example.SerializeToString())\n\n writer_idx_for_episode = (writer_idx_for_episode + 1) % num_shards\n\n except Exception as e:\n logging.error(f"Skipping {npy_path} due to error: {e}")\n finally:\n for writer in writers:\n writer.close()\n logging.info(\n f"TFRecord sharding complete. {num_shards} shards written to {output_dir}."\n )\n logging.info("Generated shard files:")\n for fname in output_filenames:\n logging.info(f" {fname}")\n\n\nif __name__ == "__main__":\n if (\n not Path(args.source_data_dir).exists()\n or not (Path(args.source_data_dir) / "metadata.npy").exists()\n ):\n logging.error(f"Please generate data in '{args.source_data_dir}' first.")\n else:\n main_preprocess(\n args.source_data_dir, args.output_tfrecords_dir, args.num_shards\n )\n
|
python
|
tab
|
327
| 375,399
|
sbatch_scripts/preprocess/mp4_to_npy_6xx copy.sbatch
| 0
| 0
|
#!/usr/bin/env bash\n\n#SBATCH --nodes=1\n#SBATCH --ntasks-per-node=1\n#SBATCH --time=01:00:00\n#SBATCH --partition=cpuonly\n#SBATCH --account=hk-project-p0023960\n#SBATCH --output=logs/logs_preprocessing/%x_%j.log\n#SBATCH --error=logs/logs_preprocessing/%x_%j.log\n#SBATCH --mail-user=avocadoaling@gmail.com\n#SBATCH --job-name=mp4_to_npy_openai_6xx_Jun_29\n#SBATCH --mail-type=ALL\n#!/usr/bin/env bash\n# Log the sbatch script\ncat $0\n\nsource .venv_jafar/bin/activate\n\ninput_path="/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data/open_ai_minecraft/all_6xx_Jun_29/"\noutput_path="/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data/open_ai_minecraft_npy/all_6xx_Jun_29"\n\nstart_time=$(date +%s) \npython utils/preprocess_video_to_npy.py --input_path $input_path --output_path $output_path\nend_time=$(date +%s)\necho "Time taken: $((end_time - start_time)) seconds"\n\n\n
|
shellscript
|
tab
|
328
| 388,461
|
sbatch_scripts/preprocess/npy_to_tfrecord_6xx.sbatch
| 0
| 0
|
#!/usr/bin/env bash\n\n#SBATCH --nodes=1\n#SBATCH --ntasks-per-node=1\n#SBATCH --time=01:00:00\n#SBATCH --partition=cpuonly\n#SBATCH --account=hk-project-p0023960\n#SBATCH --output=logs/logs_preprocessing/%x_%j.log\n#SBATCH --error=logs/logs_preprocessing/%x_%j.log\n#SBATCH --mail-user=avocadoaling@gmail.com\n#SBATCH --job-name=mp4_to_npy_openai_6xx_Jun_29\n#SBATCH --mail-type=ALL\n#!/usr/bin/env bash\n# Log the sbatch script\ncat $0\n\nsource .venv_jafar/bin/activate\n\ninput_path="/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data/open_ai_minecraft/all_6xx_Jun_29/"\noutput_path="/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data/open_ai_minecraft_npy/all_6xx_Jun_29"\n\nstart_time=$(date +%s) \npython utils/preprocess_video_to_npy.py --input_path $input_path --output_path $output_path\nend_time=$(date +%s)\necho "Time taken: $((end_time - start_time)) seconds"\n\n\n
|
shellscript
|
tab
|
329
| 394,639
|
TERMINAL
| 0
| 0
|
queue
| null |
terminal_command
|
330
| 394,689
|
TERMINAL
| 0
| 0
|
]633;E;2025-06-25 10:23:48 queue;a9a4de27-e0e0-4f7a-a81f-6ae3e98df676]633;C
| null |
terminal_output
|
331
| 394,756
|
TERMINAL
| 0
| 0
|
[?1049h[22;0;0t[1;25r(B[m[4l[?7h[H[2JEvery 1.0s: squeue --me[1;188Hhkn1993.localdomain: Wed Jun 25 10:23:48 2025[3;14HJOBID PARTITION NAME USER ST\tTIME NODES NODELIST(REASON)[4;12H3289577 accelerat train_dy tum_ind3 R 14:47:12\t 1 hkn0712[5;12H3290195 cpuonly mp4_to_n tum_ind3 R\t0:13\t 1 hkn1023[25;232H
| null |
terminal_output
|
332
| 395,803
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
333
| 396,856
|
TERMINAL
| 0
| 0
|
[1;226H50[4;60H4[5d5[25;232H
| null |
terminal_output
|
334
| 397,909
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[5d6[25;232H
| null |
terminal_output
|
335
| 398,959
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
336
| 400,015
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
337
| 401,066
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
338
| 402,104
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d20[25;232H
| null |
terminal_output
|
339
| 403,155
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H20[5d1[25;232H
| null |
terminal_output
|
340
| 404,205
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
341
| 405,254
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
342
| 406,308
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
343
| 407,372
|
TERMINAL
| 0
| 0
|
[1;224H4:00[4;60H4[5d5[25;232H
| null |
terminal_output
|
344
| 408,497
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[5d6[25;232H
| null |
terminal_output
|
345
| 409,453
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
346
| 410,548
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
347
| 411,561
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
348
| 412,611
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d30[25;232H
| null |
terminal_output
|
349
| 413,721
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H31[5d2[25;232H
| null |
terminal_output
|
350
| 414,712
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
351
| 415,770
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
352
| 416,816
|
TERMINAL
| 0
| 0
|
[1;226H10[4;60H4[5d5[25;232H
| null |
terminal_output
|
353
| 417,860
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[5d6[25;232H
| null |
terminal_output
|
354
| 418,903
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
355
| 419,949
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
356
| 421,005
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
357
| 422,049
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d40[25;232H
| null |
terminal_output
|
358
| 423,095
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H40[5d1[25;232H
| null |
terminal_output
|
359
| 424,140
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
360
| 425,191
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
361
| 426,238
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
362
| 427,277
|
TERMINAL
| 0
| 0
|
[1;226H20[4;60H4[5d5[25;232H
| null |
terminal_output
|
363
| 428,322
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[5d6[25;232H
| null |
terminal_output
|
364
| 429,367
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
365
| 430,416
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
366
| 431,469
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
367
| 432,515
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d50[25;232H
| null |
terminal_output
|
368
| 433,586
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H50[5d1[25;232H
| null |
terminal_output
|
369
| 434,612
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
370
| 435,658
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
371
| 436,852
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H4[5d5[25;232H
| null |
terminal_output
|
372
| 437,754
|
TERMINAL
| 0
| 0
|
[1;226H31[4;60H5[5d6[25;232H
| null |
terminal_output
|
373
| 438,911
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
374
| 439,842
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
375
| 440,959
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
376
| 441,983
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5;57H1:00[25;232H
| null |
terminal_output
|
377
| 443,002
|
TERMINAL
| 0
| 0
|
[1;227H6[4;57H8:00[5d1[25;232H
| null |
terminal_output
|
378
| 444,054
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
379
| 445,109
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
380
| 446,159
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
381
| 447,212
|
TERMINAL
| 0
| 0
|
[1;226H40[4;60H4[5d5[25;232H
| null |
terminal_output
|
382
| 448,268
|
TERMINAL
| 0
| 0
|
[1;227H1[4;60H5[5d6[25;232H
| null |
terminal_output
|
383
| 449,342
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
384
| 450,391
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
385
| 451,437
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
386
| 452,531
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d10[25;232H
| null |
terminal_output
|
387
| 453,555
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H10[5d1[25;232H
| null |
terminal_output
|
388
| 454,591
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
389
| 455,641
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
390
| 456,686
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H4[5d5[25;232H
| null |
terminal_output
|
391
| 457,737
|
TERMINAL
| 0
| 0
|
[1;226H51[4;60H5[5d6[25;232H
| null |
terminal_output
|
392
| 458,881
|
TERMINAL
| 0
| 0
|
[1;227H2[4;60H6[5d7[25;232H
| null |
terminal_output
|
393
| 459,834
|
TERMINAL
| 0
| 0
|
[1;227H3[4;60H7[5d8[25;232H
| null |
terminal_output
|
394
| 460,887
|
TERMINAL
| 0
| 0
|
[1;227H4[4;60H8[5d9[25;232H
| null |
terminal_output
|
395
| 461,954
|
TERMINAL
| 0
| 0
|
[1;227H5[4;60H9[5d20[25;232H
| null |
terminal_output
|
396
| 462,985
|
TERMINAL
| 0
| 0
|
[1;227H6[4;59H20[5d1[25;232H
| null |
terminal_output
|
397
| 464,103
|
TERMINAL
| 0
| 0
|
[1;227H7[4;60H1[5d2[25;232H
| null |
terminal_output
|
398
| 465,083
|
TERMINAL
| 0
| 0
|
[1;227H8[4;60H2[5d3[25;232H
| null |
terminal_output
|
399
| 466,130
|
TERMINAL
| 0
| 0
|
[1;227H9[4;60H3[5d4[25;232H
| null |
terminal_output
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.