Home
Softono
zgaming

zgaming

Open source MIT Python
12
Stars
1
Forks
0
Issues
0
Watchers
2 years
Last Commit

About zgaming

Official impl. of SIGCOMM paper "ZGaming: Zero-Latency 3D Cloud Gaming by Image Prediction". A novel 3D cloud gaming system based on image prediction, in order to eliminate the interactive latency.

Platforms

Web Self-hosted Cloud

Languages

Python

ZGaming: Zero-Latency 3D Cloud Gaming by Image Prediction

ZGaming is a novel 3D cloud gaming system based on image prediction, in order to eliminate the interactive latency in traditional cloud gaming systems. This repository is the implementation of ZGaming's image prediction algorithm, specifically divided into foreground prediction and background prediction.

teaser1

Foreground Prediction

(0) Getting Started

Clone this repository, enter the 'foreground' folder and create local environment:

$ conda env create -f environment.yml

(1) Pre-trained models

Download the pre-trained models from here, and place them in the 'checkpoints' folder.

(2) Dataset

As a demo, we provide some data in the 'sample' folder, which you can test directly.

For a complete evaluation, you need to obtain the full dataset from here.

(3) Test

$ python run.py

The predicted images are saved in the 'results' folder.

Note that in the default configuration, ZGaming will resize the input images to a resolution of 256*256 for prediction. This is because predicting high-resolution images requires a huge amount of GPU memory (for example, a resolution of 1024*1024 requires 41GB). If your GPU meets these requirements, you can change '--img_width' in 'run.py' to 1024, and change '--pretrained_model' in 'run.py' to './checkpoints/in5_out10_1024_60k.ckpt'.

Background Prediction

(0) Getting Started

Clone this repository, enter the 'background' folder.

Configure OpenCV for C++ (We tested with OpenCV 4.5.5) and compile the project.

(1) Dataset

As a demo, we provide sample data, which you can test directly. Please download the zip file from here, unzip it and place the '2020-06-03-20-28-01' and '2020-06-03-22-25-09' folders in the 'data' folder.

For a complete evaluation, you need to obtain the full dataset from here.

(2) Test

Run the compiled project. This demo will first cache a short game video, then perform DIBR predictions with and without cache separately.

The predicted images will be saved in the 'results' folder, and the accuracy results in PSNR will be saved in 'results\log.txt'.

Acknowledgement

Our prediction algorithms are built based on these three repositories:

predrnn-pytorch GitHub stars

MASA-SR GitHub stars

GTA-IM-Dataset GitHub stars

Citation

@inproceedings{wu2023zgaming,
  title={ZGaming: Zero-Latency 3D Cloud Gaming by Image Prediction},
  author={Wu, Jiangkai and Guan, Yu and Mao, Qi and Cui, Yong and Guo, Zongming and Zhang, Xinggong},
  booktitle={Proceedings of the ACM SIGCOMM 2023 Conference},
  year={2023},
  pages={710--723},
  numpages = {14},
  location = {New York, NY, USA},
  series = {ACM SIGCOMM '23}
}