4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00
Commit Graph

23 Commits

Author SHA1 Message Date
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
Jake Austin
1eae0839b4
Updating the script for downloading data (#968)
* Updating the script for downloading data

* Making update to config structure

* Updating documentation and colab

* Adding back the save directory

* Pushing an all flag for nerfstudio

* forgot to save some previous edits
2022-11-25 21:40:13 -08:00
Terrance Wang
be70b86b18
remove sf street (#876) 2022-11-01 16:58:23 -07:00
Alexander Kristoffersen
18a6a71a1a
Pathlib Python 3.7 Compatibility Fix (#831)
small fix.
2022-10-25 10:01:39 -07:00
Julian Knodt
135ecf5ab8
Add D-NeRF dataset download (#815)
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2022-10-21 14:29:20 -07:00
Matthew Tancik
9bed69601f
Support python 3.7 (#802)
* Support python 3.7

* Update docs
2022-10-18 16:49:27 -07:00
Ethan Weber
d71c05f256
Google Colab support with viewer (#747)
* allows bridge server to run on a different machine

* added script

* update version

* starting docs

* update docs and scripts

* ngrok support

* use tcp

* moving webrtc outside bridge server. wop

* lazy commit

* lazy commit

* running code. webrtc not working

* lazy commit

* better logic for webrtc connection

* cleanup

* todo comment

* working webrtc

* removed logging

* fixing black

* fix eslint

* fix python version

* fix readme

* misc cleanup

* small docs fix

Co-authored-by: Ethan Weber <ethanweber@Ethans-MacBook-Pro.local>
2022-10-14 15:05:28 -07:00
Ethan Weber
26a41923e5
update camera opt defaults (#732) 2022-10-07 14:59:02 -07:00
Ethan Weber
2531242d1d
integrating record3d and fix checkpoint delete issue (#722)
* integrating record3d

* fix save checkpoint logic

* added record3d data
2022-10-07 00:34:51 -07:00
Brent Yi
edbfccccfe
Rename: dcargs -> tyro (#702)
Rename `dcargs` to `tyro`
2022-10-05 22:26:06 -07:00
Matthew Tancik
e01206f728
Update cli docs (#674) 2022-10-04 22:11:02 -07:00
Matthew Tancik
ce8985aeb6
cli improvements to download script (#668) 2022-10-04 21:00:21 -07:00
Ethan Weber
6d918e0c76
add desolation scene (#666) 2022-10-04 17:48:37 -07:00
David McAllister
4f5cc28b8d
Data download script fix (#646)
* Fixed case where no data has been downloaded

* Directory deletion
2022-10-04 12:59:06 -07:00
Ethan Weber
8fb0a5eec3
adding more datasets (#645)
* adding more data

* fix name

* add more captures
2022-10-04 10:36:12 -07:00
Ethan Weber
6315df1fd2
don't download to /tmp (#612) 2022-10-02 12:13:46 -07:00
Ethan Weber
3e61e315bb
updated download script (#592)
* updated download script

* rename

* remove omegaconf
2022-09-30 11:29:57 -07:00
Matthew Tancik
1bb0c88fb5
More renaming (#590) 2022-09-30 09:48:52 -07:00
Terrance Wang
f0adbba91f
adding nerfactory data download option (#565)
* adding nerfactory data download option

* adding docstring

* adding google file id dict
2022-09-28 16:10:19 -07:00
Matthew Tancik
046b5c216b
Misc cleanup (#494)
* misc cleanup

* Fix dependencies
2022-09-20 09:14:37 -07:00
Brent Yi
acd126c1ef
Set dcargs accent color (#465)
* Set dcargs accent color

* Bump required dcargs version

* color -> colour

* Bump dcargs to 0.3.6
2022-09-19 00:28:06 -07:00
Brent Yi
86a805c88c
Experimental autocompletion setup scripts (#378)
* Working completion scripts

* generate.py => install.py

* Uninstall for completions, docs/README updates

* Tune emojis, improve concurrency for completion install

* wip

* Cleanup

* Permissions, shebang checks
2022-09-13 12:44:27 -07:00
evonneng
416669d808
added basic download script (#410)
* basic script to download dataset

* update docs
2022-09-12 16:11:14 -07:00