Download code/README.md from GiulioTrovato/OutOfSightOutOfPlace: direct link, hf CLI and curl.
- Browser
- Download file 3.81 kB
-
https://huggingface.co/datasets/GiulioTrovato/OutOfSightOutOfPlace/resolve/main/code/README.md
- Command line
-
hf download hf://datasets/GiulioTrovato/OutOfSightOutOfPlace/code/README.md
-
curl -L -o README.md https://huggingface.co/datasets/GiulioTrovato/OutOfSightOutOfPlace/resolve/main/code/README.md
Out of Sight, Out of Place
Code for the paper Out of Sight, Out of Place: Colour Survives Occlusion in Video-Language Models, Location Does Not: the scene generator, the renderer, the VLM and V-JEPA 2 evaluation, and the scripts that produce the paper's figures and tables.
This folder is the code/ folder of the dataset repository https://huggingface.co/datasets/oosoop-anon/out-of-sight-out-of-place; the videos, visibility records and model outputs
are at its root.
All scripts run from the repository root and use paths relative to it. The .slurm files are the job scripts we used
on a Slurm cluster; each one shows the exact command and can be run with bash after setting SLURM_SUBMIT_DIR=$PWD
(and SLURM_ARRAY_TASK_ID for array jobs).
Setup
- Python 3.11+ with
pip install -r requirements.txt(analysis, figures, V-JEPA 2). - Blender 4.5 LTS at
.local/blender/blender(rendering only). - ffmpeg with libx264 at
.local/video/imageio_ffmpeg/binaries/ffmpeg-linux-x86_64-v7.0.2, or editFFMPEGin the scripts andffmpeginocclusion_memory_benchmark/pilot_v1/config.json. - VLMs: a separate environment with vLLM (
occlusion_memory_benchmark/memory_v2/code/install_vllm.slurm) and the checkpoints in.local/models/vlm/<name>(download_vlms.slurm):Qwen/Qwen3-VL-{2B,8B,32B,30B-A3B}-Instruct,OpenGVLab/InternVL3_5-{2B,8B,38B}-HF. - V-JEPA 2: the official repository at
.local/vjepa2and the ViT-L checkpoint at.local/models/vitl.pt.
Reproduce the paper's results from the released data
hf download oosoop-anon/out-of-sight-out-of-place --repo-type dataset --exclude 'code/*' \
--local-dir occlusion_memory_benchmark/memory_v2/dataset_sizes
python paper/scripts/make_result_tables.py # appendix tables -> paper/tables/
python paper/scripts/make_figures.py # figures and main tables -> paper/figures/, paper/tables/
Regenerate the dataset
Code in occlusion_memory_benchmark/memory_v2/code/; the paper's dataset uses k = 1-5 objects and the layout types
wide, close, in_line.
- Layouts (
layouts_sizes.py): object, block and camera placement with the visibility constraints; the 15 layouts used in the paper are inocclusion_memory_benchmark/memory_v2/layouts_sizes_k5/. - Render (
render_layout.pyin Blender;render_sizes.slurm): one run per layout x camera path x world x block setting, 64 frames with RGB, object-ID masks and per-object reference silhouettes, andrecord.jsonwith per-frame visibility:sbatch --array=0-239 --export=ALL,SIZES="1 2 3 4 5",KINDS="wide close in_line",LAYOUT_DIR=occlusion_memory_benchmark/memory_v2/layouts_sizes_k5 render_sizes.slurm - Assemble (
assemble_k2.py;assemble_sizes.slurm): cuts each video from a history render (frames 0-31) and an ending render (frames 32-63), encodes it losslessly, and checks that the hidden frames are identical in all 16 videos of a condition. - Leak checks (
leak_render.py,leak_analyze.py,sunpause_*.py): the controls described in the appendix.
Evaluate
- VLMs (
eval_vlm_vllm.py, prompts and questions ineval_vlm_k2.py): two-video choice, both orders, scoring the log-probabilities of "Video 1" and "Video 2". Main set:eval_vlm_vllm.slurm <model> pairs-vllm-<model>; one-object wordings:eval_vlm_vllm.slurm <model> k1places-vllm-<model> --k1-places. - V-JEPA 2 (
eval_vjepa_k2.py --dataset sizes): surprise of the changed against the still video with the same history. - Humans (
human_eval_web_k2.py): builds the browser experiment from the videos. - Analysis:
paper/scripts/make_figures.pyandmake_result_tables.pycompute answers, scores, position bias and content signal from the runs.
Licence
Code: MIT. Data: CC BY 4.0.