Commit Graph
37 Commits
Author SHA1 Message Date
Ethan Weber f724e16a23 cleanup 2023-01-30 20:11:49 +00:00
Ethan Weber 9e992b9550 fixing linting 2023-01-30 19:49:17 +00:00
Ethan Weber 844e518aaf moving functions around 2023-01-30 18:21:56 +00:00
Ethan Weber 3d645515b8 merged 2023-01-27 23:13:59 +00:00
Ethan Weber 828a4fa532 before merge 2023-01-27 23:05:29 +00:00
Terrance Wang 73bffe058f Fix tensorf chkpt loading (#1266)
* setting tensorf default from wandb to viewer

* adding functionality to adjust model depending on the step of the checkpoint that is loaded

* cleaning code

* bug fix

* fixing style
2023-01-20 12:00:51 -08:00
Matthew Tancik 23ca7a7cc8 Non-strict loading of checkpoints (#1235) 2023-01-16 15:12:59 -08: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
Ethan Weber 8fd7ea13fe working on abllations 2022-12-23 19:31:02 +00:00
Matthew Tancik 335c5c3661 Fix dynamic batch logic during inference (#1160) 2022-12-21 22:50:05 -07:00
Ethan Weber d74a0f6ecd cleanup prints 2022-12-18 21:08:21 +00:00
Ethan Weber 68245153b5 pose and appearance opt working 2022-12-17 01:17:05 +00:00
Ethan Weber 37097e267f appearance working 2022-12-17 01:01:17 +00:00
Ethan Weber b672d46f1a 2 psnr boost w/ camera opt for eval 2022-12-16 23:37:11 +00:00
Ethan Weber 6d0d4cbc34 fix camera pose opt 2022-12-16 22:04:35 +00:00
Ethan Weber 1367779b30 fix wandb and image indexing 2022-12-16 19:46:05 +00:00
Ethan Weber 4a85c5a4f7 small update 2022-12-13 21:12:17 +00:00
Ethan Weber 975b541eb5 removing eval dataloader logic in favor of consistent pixel sampling 2022-12-10 01:25:41 +00: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 009e21be24 Fix loading in inference mode (#965) 2022-11-15 21:06:54 -08: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
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
Ethan Weber 6f4fb506e2 Multi-gpu improvements (#799)
* initial commit

* minor changes

* small changes

* ddp seems to be working

* remove commented out code
2022-10-20 01:11:40 -07:00
cac177717f Pose optimization (#721)
* pose opt default nerfacto.

* added SO3 cam pose optimization which is slightly faster (~2.2m/iter) than BARF

* integrating record3d

* fix linting errors

* fix save checkpoint logic

* added record3d data

* workaround to avoid flag

* moved dict

* black

* record3d docs

* re-add typing to exp_map.

* Pose optimization refactor

* Fix camera optimizer param group logic

* Update docs + comments

* Update docs, shorten names

* Appease pylint

* repeat -> tile, apply missing name change

* Fix optimizer as scheduler bug

* Fix test

Co-authored-by: akristoffersen <akristoffersen@berkeley.edu>
Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
Co-authored-by: Brent Yi <yibrenth@gmail.com>
2022-10-07 10:11:33 -07:00
Matthew Tancik 6162f9d81f Tancik/remove valid mask (#655)
* Install updates

* Remove valid mask logic
2022-10-04 13:54:39 -07:00
Ethan Weber 05ba4b6b00 semantic nerfw (#640)
transients not working right now
2022-10-03 20:36:32 -07:00
evonneng 968959bdc9 quickstart updates + (other nits+links added to repo) (#633)
* small changes

* rewrite quickstart + readme

* fixed all licensing headers

* nits
2022-10-03 16:01:16 -07:00
Matthew Tancik 3efd3c3298 dataset_inputs -> dataparser_outputs (#627) 2022-10-03 09:45:36 -07:00
Alexander Kristoffersen 60bf31844f Camera Extrinsics Optimization (#610)
* init commit.

* cleanup.

* docstring cleanup.
2022-10-02 17:56:25 -07:00
Ethan Weber c20fed83bb moving around files (#616)
moved around files
2022-10-02 16:54:34 -07:00
evonneng 50d9aa1341 small fixes (#581)
* small fix

* oom error

* created model wrapper; make DDP working again; todo need to check if it works with viewer

* working with multigpu now
2022-10-02 13:54:13 -07:00
Jake Austin 3489e992b0 Datamanager fields typing (#609) 2022-10-02 12:24:05 -07:00
Matthew Tancik 4110bd7a3e Rename scene bounds (#605) 2022-10-01 20:41:36 -07:00
Ethan Weber e13d401b16 restructure codebase pre release (#602)
* moving a lot

* building
2022-10-01 16:36:25 -07:00
Matthew Tancik 1f83ad03db Rename to nerfstudio (#589) 2022-09-29 23:42:15 -07:00