Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
/ NSRR-PyTorch Public archive

[Not working] PyTorch version of the paper 'Neural Supersampling for Real-time Rendering' by Facebook Reality Labs (2020)

License

Notifications You must be signed in to change notification settings

IMAC-projects/NSRR-PyTorch

Repository files navigation

Neural Supersampling for Real-time Rendering with Pytorch

Create super-resolution images from low-resolution in real time. Non-official implementation of the paper NSRR by Facebook Reality Labs in 2020. A blog post is available with more details.

We tried to implement it, but haven't got it to the final steps, the report about our advances is available here

Getting started

Requirements

You need Python at least 3.5 (3.6 recommended).

To install other dependencies, you can use pip with :

pip install -r requirements.txt

Usage

Dataset

You can generate your own dataset from this Unity 2019 project it will export the view, the depth buffer and the motion vector of the game camera in any resolution you want. We've setup a few animated scenes already, check the repo for more details.

Pre-created dataset will be downloadable soon

In order to be loaded using NSRRDataLoader, the dataset should be structured like so:

[root_dir]
│
└───View
│   │   img_1.png
│   │   img_2.png
│    ...
│   
└───Depth
│   │   img_1.png
│   │   img_2.png
│    ...
│   
└───Motion
│   │   img_1.png
│   │   img_2.png
│    ...

Where root_dir is the data_dir in config.json of NSRRDataLoader

Note that corresponding tuples of (view, depth, motion) images files should share the same name, as they cannot be grouped together otherwise.

Unit testing

You can remove -d 1 if you do not have a CUDA-capable GPU.

python3 debug.py -c 'config.json' -d 1

Miscellaneous information

Using :

About

[Not working] PyTorch version of the paper 'Neural Supersampling for Real-time Rendering' by Facebook Reality Labs (2020)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages