GithubHelp home page GithubHelp logo

facebookresearch / donerf Goto Github PK

View Code? Open in Web Editor NEW
312.0 10.0 45.0 865 KB

Code for "DONeRF Towards Real-Time Rendering of Compact Neural Radiance Fields using Depth Oracle Networks"

License: Other

Python 95.41% C++ 0.61% Cuda 3.98%

donerf's People

Contributors

alberthuyb avatar thomasneff avatar yyeboah avatar zhaoyang-lv 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  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  avatar  avatar

donerf's Issues

How to get the 'depth_range_warped_log' in dataset_info.json

Thanks for your great work!
I want to run DONeRF with my own dataset rendered from Blender, and I am stuck with how to get the 'depth_range_warped_log' by 'depth_range' that is measured by depth map.
Because I create my dataset by keeping 'depth_range_warped_log' the same as 'depth_range', and the output is not well.

Cannot understand the classification mechanism of Sampling Oracle Network

Hello sir. :)

I have a question about section5.1 in your paper.

  1. What is the classification class mean? In the paper, each class corresponds to discretized segment along the ray; for every discrete ray segment, a high value indicates it should receive multiple samples. I'm confusing about the "class ray segment classified" and "receiving multiple samples" meaning.

  2. And how can multi-class target can be provided?.. The paper said it leads to binary classification.

Entirely, I can't understand the classification mechanism of the network.

Can you explain in detail?

Thanks!

pin error

Any idea what this problem might be? @thomasneff
Using the code out of the box with pavillon dataset for training.

WARNING! - import of cuda kernels for 'disc_depth_multiclass' failed - falling back to PyTorch
Training config: lo_l1.0_0.0_SpPoDir[128]-relu0(256x8)-CD-128-5-5_l1.0_10.0_RayMarchFromPoses_nSD[2_LSfCD_128_0.0](nerf(10-4))-relu1(256x80..63-7.63.)-RGBARayMarch (../configs/DONeRF_2_samples.ini)
no Checkpoints found
no Checkpoints found
epoch=21         loss=0.13672528:   0%|                                                                                    | 20/300001 [00:03<7:07:22, 11.70it/s]
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/opt/conda/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/pin_memory.py", line 28, in _pin_memory_loop
    idx, data = r
ValueError: not enough values to unpack (expected 2, got 0)
epoch=21         loss=0.13672528:   0%|                                                                                   | 21/300001 [00:08<34:03:39,  2.45it/s]
Traceback (most recent call last):
  File "train.py", line 344, in <module>
    main()
  File "train.py", line 329, in main
    pre_train(train_config)
  File "train.py", line 136, in pre_train
    batch_iterator = iter(train_config.train_data_loader)
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 349, in __iter__
    self._iterator._reset(self)
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 852, in _reset
    data = self._get_data()
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1029, in _get_data
    raise RuntimeError('Pin memory thread exited unexpectedly')
RuntimeError: Pin memory thread exited unexpectedly

import of kernels failed

WARNING! - import of cuda kernels for 'disc_depth_multiclass' failed - falling back to PyTorch

@thomasneff is there something missing in the repo? How did you make those kernels work?

Colab notebook

Thanks for sharing this fantastic work. Would you consider releasing a Google Colab notebook for less technically inclined people like myself to to try this out? Thanks in advance!

How to use the dataset's transforms?

Thank you very much for your excellent work!
While use your dataset, how can i get every image's camera to world pose?

How do I apply the transform I get from the .json?
Do I need to convert from blender coordinate system to opencv coordinate system like nerf?

Test rendering speed?

Hi, I want to test your method's rendering speed. When I use your test.py it takes about 1.3 sec for each iteration on Nvidia V100 GPU using Pavillon data, whereas it is claimed about 50 ms/image in the paper. What's the easiest way to test your claimed rendering speed?

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.