Giter Site home page Giter Site logo

vcl3d / deeppanoramalighting Goto Github PK

View Code? Open in Web Editor NEW
63.0 8.0 12.0 31.39 MB

Deep Lighting Environment Map Estimation from Spherical Panoramas (CVPRW20)

Home Page: https://vcl3d.github.io/DeepPanoramaLighting/

Python 100.00%
spherical-panoramas lighting-estimation cnn pytorch relighting spherical-harmonics 360 omnidirectional augmented-reality

deeppanoramalighting's Introduction

Code accompanying the paper "Deep Lighting Environment Map Estimation from Spherical Panoramas", CVPRW 2020

Paper Conference Workshop Project Page YouTube

TODO

  • Pre-trained model.
  • Inference code.

Code and Trained Models

This repository contains inference code and models for the paper Deep Lighting Environment Map Estimation from Spherical Panoramas (link).

Requirements

The code is based on PyTorch and has been tested with Python 3.7 and CUDA 10.0. We recommend setting up a virtual environment (follow the virtualenv documentation) for installing PyTorch and the other necessary Python packages. Once your environment is set up and activated, install the necessary packages:

pip install torch===1.2.0 torchvision===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html

Inference

You can download pre-trained models from here, which includes pre-trained LDR-to-HDR autoencoder and Lighting Encoder. Please put the extracted files under models and run:

python inference.py

The following flags specify the required parameters.

  • --input_path: Specifies the path of the input image.
  • --out_path: Specifies the file of the output path.
  • --deringing: Enable/disable low pass deringing filter for the predicted SH coefficients.

deeppanoramalighting's People

Contributors

vasilisgks avatar zokin avatar zuru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deeppanoramalighting's Issues

About sh distribution prior

The paper mentioned that thanks to the use of distributed priors, the performance of the network has been greatly improved.
But the code does not have an implementation of Equation.10. The last layer of the illumination model is a fully connected layer, and the Equation.1 is not used.
Can you introduce the specific usage of Equation.10? Which part of the code does it work? Thank you!

about the resolution of image

When I change the size of image,I will get the error? Does the size of the input image have to be resized to 512 × 256 ?
1664109562985

How to get spherical harmonics Coeeficients by sh_functions.py

Hi !

I am trying to find codes to help me compute spherical harmonics Coeeficients from hdr panorama images(such as panoramas from LavalInDoor datasets). I have read your paper and code, and i think the function "getCoeeficientsMatrix(...)" in sh_functions.py can help me, but i haven't found how to set the image as a input in this function.
Can you tell me how to use sh_functions.py to compute spherical harmonics Coeeficients? Or if sh_functions.py couldn't do this, can anyone tell my which code can do this?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.