Commit Graph
29 Commits
Author SHA1 Message Date
Matthew Tancik ee604800d7 Merge branch 'main' into generative 2023-01-27 10:31:51 -08:00
LSong 9a4f5e8e45 DyCheck dataset parser (#1270)
* DyCheck dataset parser

* fix lint
2023-01-23 13:59:28 -08:00
terrance 3611381d8d merging 2023-01-23 15:44:09 +00:00
matsurenandMatthew Tancik 408ab709ec Fix typo (#1231)
* Fix typo COLAMP->COLMAP

* Fix more typo

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-01-16 12:12:55 -08:00
terrance 68e8d3e9ce merging 2023-01-16 18:43:59 +00:00
terrance 49bbd5405d merging 2023-01-16 18:43:24 +00:00
Michal Pandy 3da877050d Depth supervision for Nerfacto (#1173)
* Implement depth supervision

* Fixes

* Change normalize dtype

* refactor

* Change depth weight

* Small refactor

* Change docstring

* Removu unused import

* Add assumption to depth comment

* Implement URF loss

* Remove default depth loss type param

* URF fixes

* Fix depth loss scale

* Visualize gt depths

* Fixes & documentation

* Documentation and formatting

* Fix formatting problems

* Fix linter problems

* Fix tests

* Fix tests
2023-01-02 10:13:38 +01:00
Jake Austin b9e1410c08 Appeasing the linter 2022-12-31 03:27:57 +00:00
Jake Austin e2b345ed8c Hard coding less, offloading to config 2022-12-31 03:26:08 +00:00
jake-austin 22340b37f3 Updating dreamfusion to use custom trainer, fixed bug, multi-gpu support (put diffusion on one specific device), merged with main 2022-12-28 07:06:15 +00:00
jake-austin 36258b62c1 Merge branch 'main' into generative 2022-12-28 04:35:58 +00:00
Matthew Tancik 335c5c3661 Fix dynamic batch logic during inference (#1160) 2022-12-21 22:50:05 -07:00
Nikhil Mohan 29df594334 Minimal disk dataparser (#1128)
* wip

* merge upstream

* clkeanup

* cleanup

* cleanup

* cleanup

* more cleanup

* cleanup

* cleanup docs

* lint

* style fix
2022-12-16 20:16:20 +00:00
Abhik Ahuja ahujaabhik@berkeley.edu 0fc4495348 Cleaned imports, more config options 2022-12-14 05:38:17 +00:00
Abhik Ahuja ahujaabhik@berkeley.edu cd93bc25fa Merge branch 'main' of github.com:nerfstudio-project/nerfstudio into generative 2022-12-14 05:07:21 +00:00
Matthew Tancik a0a3def162 Fix datamanager dataparser_outputs (#1123)
* Fix datamanager dataparser_outputs

* Cast to float
2022-12-13 13:53:09 -08:00
mcallisterdavid 64f7244feb Background MLP and SphereCollider 2022-12-12 23:51:06 +00:00
Matthew Tancik b41ce8060a Save out dataparser transforms (#1105)
* Save out dataparser transforms

* Make missing folder
2022-12-11 13:02:50 -08:00
mcallisterdavid dda5bf9673 Dreamfusion pipeline 2022-12-08 06:50:36 +00:00
mcallisterdavid cbb50314b1 SDS loss added to dreamfusion 2022-12-06 07:54:23 +00:00
Jake Austin e80702aeac V1 datamanager 2022-12-01 01:12:36 +00:00
Kevin Chen 87c3ead680 Add Support for Equirectangular Images (#966) 2022-11-28 21:29:02 -08:00
Ethan Weber b23d76cc47 Cameras TensorDataclass and Phototourism (#961)
This branch gives us the flexibility to use Cameras as a tensordataclass, giving arbitrary batch dimensions, slicing, etc all for free. It tests this with the phototourism dataset.

Tensordataclass changes:
Originally, the tensordataclass would look at tensors in an object and take everything in front of the last dimension to be the batch dimensions, but in the case of the camera_to_world matrices, everything except for the last TWO are the important dimensions, so we needed to have a way for the tensordataclass to acknowledge these specific fields where there are multiple data dimensions behind the batch dimensions. This is important for things like reshaping where we need to know which dimensions get reshaped and which dimensions get left alone.

Cameras changes:
Now subclass of tensordataclass, which required a change to the tensordataclass itself.
The possibility of extra batch dimensions is the hairy part that requires the majority of these changes. The extra batch dimensions aren't a hassle in every function except in ray generation. The ray generation is where this operates different relative to the old cameras. The reason for this is before, for each ray we wanted to generate, we could specify a single index into our batch of cameras, but if you have multiple camera dimensions, for each ray, you need to now specify one index per camera batch dimension, meaning our camera_indices we specify need to have one extra dimension at the end, a dimension of size Cameras.ndim (number of batch dimensions in the camera object).
I also added some neat logic in generate_rays where if you want your output raybundle to be batched, if you specify batched camera_indices, you will receive the same batch size for the output raybundle, meaning you can easily generate raybundles corresponding to things like image patches and whatnot.

Phototourism changes:
The difficulty here is that images in the phototourism dataset are of different sizes, which is difficult because we can no longer batch the image tensors. We also need to better utilize caching in the CacheDataloader since the vanilladatamanager defaults don't really use it as well as they could, and without properly utilizing it, the rays / sec are maybe 25% of the standard nerfstudio dataset speeds (which are 10% of the size of the phototourism datasets). To do this, we specify a collate function in the existing datamanager configs, and we make a subclass of the vanilladatamanagerconfig named VariableResDataManagerConfig which will have a custom collate function storing the images in a list, and using better defaults for caching in the dataloader, caching ~40 images at a time. The slowest part of using a list is pixel sampling, where we added a custom if case for if our pixel sampler receives a batch of images that are in a list, and the lack of ability to vectorize operations over a list means that caching in the dataloader is even more important.
2022-11-25 22:16:11 -08:00
Nikhil Mohan a82d19f549 Support downsample in dataset (#973)
* init

* tests passing

* pass through arguments

* verbose

* remove debug prints

* switch to bilinear

* update viewer

* make parser outputs private

* change name
2022-11-19 17:06:34 +00:00
Matthew Tancik 6baf31dc9a Fix python 3.7 support (#959) 2022-11-15 09:51:23 -08:00
Nikhil Mohan b5c34f0154 Add 'inference' mode to pipeline (#956)
* cleanup test mode

* cleanup eval loading

* change default

* cleanup

* cleanup

* comment
2022-11-14 16:56:36 +00:00
Zak Murezandzmurez 6ea7dbf934 NuScenes dataparser (#939)
* nuscenes dataparser

* cleanup

* style

* cleanup

* cleanup

* cleanup

Co-authored-by: zmurez <zmurez@eng.ucsd.edu>
2022-11-11 18:40:36 -08:00
Brent YiandEthan Weber ad8599aad0 Add missing __init__.py files (#935)
* Add missing __init__.py files

* fixing lint

Co-authored-by: Ethan Weber <eweb0124@gmail.com>
2022-11-10 16:56:13 -08:00
Nikhil Mohan 1a24f3e58c Refactor Data Pipeline (#896)
* add none check

* black formatting

* cleanup

* cleanup

* fix tests

* remove new line

* init

* toy example working

* semantic nerf working

* simplify pixel samplers

* cleanup + fix tests

* comments

* fix tests

* fix tests
2022-11-06 07:40:43 -08:00