Skip to content
This repository was archived by the owner on Oct 4, 2025. It is now read-only.

Repository files navigation

VR Viewport Prediction

Preparing Dataset

  • Copy 5 videos to datasets/videos/ directory

    $ tree datasets/videos
    datasets/videos
    ├── video_01.mp4
    ├── video_01_subtitle_original.srt
    ├── video_01_subtitle.srt
    ├── video_02.mp4
    ├── video_02_subtitle_original.srt
    ├── video_02_subtitle.srt
    ├── video_03.mp4
    ├── video_03_subtitle_original.srt
    ├── video_03_subtitle.srt
    ├── video_04.mp4
    ├── video_04_subtitle_original.srt
    ├── video_04_subtitle.srt
    ├── video_05.mp4
    ├── video_05_subtitle_original.srt
    └── video_05_subtitle.srt
    
    0 directories, 15 files
  • Run ./scripts/preprocess_collected_data.py --all to extract video frames and preprocess head orientation log, subtitles.

  • Run ./scripts/extract_ground_truth_saliency_maps.py to extract ground-truth saliency maps.

Evaluating Models

demo-gif

$ poetry shell
$ vp -h
usage: viewport_prediction [-h] -m MODEL_NAME -c FILE [-v]

Run experiment

options:
  -h, --help            show this help message and exit
  -m MODEL_NAME, --model MODEL_NAME
                        Model name ['ieee2020']
  -c FILE, --config FILE
                        Config file location
  -v, --version         Print version info

$ vp -c ./config/ieee2020.toml -m ieee2020

Convention

Spherical Coordinates

Spherical Coordinates

The position of a point is specified by a tuple of ($\theta$, $\phi$, $r$), where:

  • $0 \le \theta \le \pi$ denotes the inclination angle in radians from the positive $z$-axis
  • $0 \le \phi \le 2\pi$ denotes the counterclockwise azimuth angle in the $x$-$y$ plane measured in radians from the positive $x$-axis
  • $r$ represents radius.

TODO

  • Refactor code
  • Disable reshuffle on val & test datasets
  • Add dataset for Seq2Seq-based models
  • Add models
    • MM2018
    • Sensors2022 (Head orientation + Saliency + Subtitle features)
  • Quaternion

About

Data visualization and models for forecasting VR viewports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages