Giter VIP home page Giter VIP logo

hypernerfgan's Introduction

HyperNeRFGAN: Hypernetwok approach to 3D NeRF GAN

CARLA ShapeNet

This repo contains implementation of "HyperNeRFGAN: Hypernetwok approach to 3D NeRF GAN". It's built on top of INR-GAN. The main idea behind HyperNeRFGAN is that the generator network is INR-based, i.e. it produces parameters for a fully-connected neural network which implicitly represents a 3D object.

NerfGAN illustration

Installation

To install, run the following command:

conda env create --file environment.yaml --prefix ./env
conda activate ./env

Training

To train the model, navigate to the project directory and run:

python src/infra/launch_local.py hydra.run.dir=. +experiment_name=my_experiment_name +dataset.name=dataset_name num_gpus=1

where dataset_name is the name of the dataset without .zip extension inside data/ directory (you can easily override the paths in configs/main.yml). So make sure that data/dataset_name.zip exists and should be a plain directory of images. See StyleGAN2-ADA repo for additional data format details. This training command will create an experiment inside experiments/ directory and will copy the project files into it. This is needed to isolate the code which produces the model.

Before training on a given <dataset>, modify configs/main.yml so that "hydra_cfg_name" points to an apprioriate configuration file. Configuration files for different datasets are located in configs folder and follow this naming scheme: nerf-gan-<dataset>.yml.

Pretrained models

Models pretrained on the CARLA dataset and ShapeNet dataset (cars, planes, chairs) can be found here. Use examples_from_pickle.py to generate images using a pretrained model:

cd src
python examples_from_pickle.py

This script will load a pickle from data/pickles and save image and interpolation samples in folder samples. By default, the code loads a model trained on CARLA.

Data format

We use the same data format as the original StyleGAN2-ADA repo: it is a zip of images. It is assumed that all data is located in a single directory, specified in configs/main.yml.

We also provide downloadable links to datasets:

Download the datasets and put them into data/ directory.

License

This repo is built on top of INR-GAN repo, so I assume it is restricted by the NVidia license.

Bibtex

@misc{kania2023hypernerfgan,
      title={HyperNeRFGAN: Hypernetwork approach to 3D NeRF GAN}, 
      author={Adam Kania and Artur Kasymov and Maciej Zięba and Przemysław Spurek},
      year={2023},
      eprint={2301.11631},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

hypernerfgan's People

Contributors

remilvus avatar waczjoan avatar universome avatar

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.