p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] slurm/jobs/mihir/berlin/diffusion/coinrun/sample_coinrun.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=01:00:00
#SBATCH --partition=accelerated
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:4
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/sample/coinrun/diffusion/sample_coinrun_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/sample/coinrun/diffusion/sample_coinrun_%j.log
#SBATCH --job-name=sample_coinrun

# Activate virtual environment
source .venv/bin/activate

array_records_dir=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/val

CHECKPOINT_PATH=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/train_dyn_dit/32615

echo "Sampling from checkpoint: $CHECKPOINT_PATH"

srun python jasmine/sample.py \
    --checkpoint "$CHECKPOINT_PATH" \
    --data_dir=$array_records_dir \
    --seq_len=16 \
    --window_size=16 \
    --batch_size=4 \
    --start_frame=4 \
    --image_height=64 \
    --image_width=64 \
    --dyna_type=diffusion \
    --diffusion_denoise_steps=128 \
    --print-action-indices \
    --output_dir "gifs/diffusion/coinrun/from_tokenizer_checkpoint" \
    --tokenizer_type=mae \