Commit Graph
89 Commits
Author SHA1 Message Date
Ethan Weber 9315cad5f5 Switching Nerfstudio Dataset data to GDrive URLs (#2358)
* switch urls to gdrive

* added comment with explicit link to gdrive url
2023-08-19 13:48:28 -07:00
Ethan Weber 1b430590c8 Nerfstudio Feedback Form (#2351)
* nerfstudio feedback form with a url placeholder

* text change

* updating feedback form url

* adding another url
2023-08-17 20:40:53 -07:00
Ethan Weberandmachenmusik 9b6010ea0d Adding support for PairPixelSampler and PatchPixelSampler masks (#2305)
* changes

* pair pixel sampling with a mask

* reverting changes

* revert changes

* remove line in erode

* support for patch pixel samplerr masks

* fix

---------

Co-authored-by: machenmusik <machenmusik@users.noreply.github.com>
2023-08-05 10:40:23 -04:00
71c6b9cf3d Monodepth Regularization (#2284)
* monodepth implemented

* device

* pair pixel sampler

* docstring

* removing unused imports

* fix bugs

* cache in cache dir, no longer edit json file

* moving to depth nerfacto

* fixed bug using median depth by accident

* removing depthdataset from nerfacto

* added pixelsamplerconfig

* added equirectangular warning back

* bug fix

* delete sample_config.py + small fixes

* rename to pixel_sampler

* cleaning

* test

* passing num_rays_per_batch properly

* fixed transforms typo

* renaming in nerfacto

* remove depth files from test data

* removed defaulting to base pixel sampler with mask

* adding patch_size back

---------

Co-authored-by: AdamRashid96 <abrashid@berkeley.edu>
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-08-01 18:52:47 -07:00
Ethan Weber da813549e8 ns-render with depth colormap support (#2125)
* can render depth with a colormap

* include colormap_options as argument
2023-07-27 14:06:54 -04:00
Ethan WeberandMatias Turkulainen d9ee5752d2 Fix to fall back to torch if tcnn not found (#2124)
fix for falling back to torch if tcnn not found

Co-authored-by: Matias Turkulainen <30566358+maturk@users.noreply.github.com>
2023-06-27 09:33:28 -07:00
Ethan WeberandEthan Weber bb6925bac6 Ability to use vanilla pytorch instead of tcnn for Nerfacto (#1936)
* started a package to easily swap out tcnn for pytorch

* trains with pytorch and not tcnn

* cleaned up imports

* making it easy to install on mac

* removed/reverted files

* merged main

* reverted changes

* updating config

* starting to add nerfacto to tests

* fixxing default value

* fixed default implementation

* defaults to torch if tcnn and not installed

* update log

* add comment

* resolved pr comments

* fix

* update default

---------

Co-authored-by: Ethan Weber <ethanweber@eecs-128-32-175-250.dhcp.berkeley.edu>
2023-05-25 14:55:42 -07:00
Ethan Weber e94d9031ab SIGGRAPH 2023 Citation Update (#1997)
* siggraph 2023 update

* update citation

* update citation
2023-05-24 18:16:01 -07:00
Ethan Weber 13e0fce122 Update copyright (#1917)
* updated copyright

* including txt file

* updated black

* removing license

* fixing license
2023-05-12 16:16:13 -07:00
Ethan Weber 7537551f38 Avoids running test_train.py on external methods (#1882)
removes testing on external methods
2023-05-06 12:19:26 -07:00
Ethan Weber d847949fe9 fixing wandb envs (#1880)
* adding back support for wandb envs

* remove .init
2023-05-06 10:15:48 -07:00
Ethan Weber 081bf82bf5 Wandb/experiment improvements (#1879)
exposing experiment settings
2023-05-05 18:28:52 -07:00
Ethan WeberandMatthew Tancik b3f1153a78 Add option to auto select a websocket port (#1628)
* option to auto select a websocket port

* keep default port

* add docs

* default port

* Update base_config.py

---------

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-03-17 15:53:27 -07:00
Ethan Weber 3066819241 Fix eval dataloader to use eval ray generator (#1473)
fix eval ray generator
2023-02-22 09:53:42 -08:00
Ethan Weber 642a9e00f0 Quick fix for mask None check (#1193)
quick fix
2022-12-31 19:29:26 -07:00
Ethan Weber 3bf490e845 adding data subset (#1135)
* adding nerfstudio-dataset

* removed file
2022-12-15 17:29:41 -08:00
Ethan Weber 2a62d8a14e Update mipnerf defaults (#1092)
update mipnerf defaults
2022-12-05 15:37:49 -08:00
Ethan Weber f6ac1d72ff v0.1.12 (#1079) 2022-12-02 18:22:26 -08:00
Ethan Weber 3377c5344b [WIP] Mesh export UI (#1076)
* starting PR

* export mesh ui functional

* better descriptions
2022-12-02 17:51:21 -08:00
Ethan WeberandMatt Tancik 1052fccec2 Mesh export (#809)
* start of mesh PR

* point cloud export mvp

* start of mesh PR

* point cloud export mvp

* Save out mesh. Poor quality atm

* reorganized mesh algorithms and specified CLI

* CLI reorg

* tsdf algorithm in progress

* debugging

* tsdf functional but camera distortion params not in

* playing with distortion params

* TSDF works but texture looks bad

* added trimesh

* moved to exporter

* removed files

* saving progress

* save texture image

* seems to work w/o barycentric

* barycentric start

* gap between triangles

* blocking out diagonal

* new barcentric and scaling

* meshing working. need to remove extra rows

* fixed triangle packing

* gitignore changes

* removed package

* fix Literal import

* comments

* update .mtl file

* poisson mesh with model output normals & resolved some PR comments on git

* starting docs. breaking up big function. todo: add xatlas

* xatlas and nvdiffrast working

* triangle_id

* progress on expensive texture coordinates method

* pytorch meshing works

* removing nvdiffrast

* remove trimesh

* cleanup

* few changes

* pred normals by default and add minimum additions to viewer

* fix cli in viewer

* add xatlas as dependency

* make point cloud more dense

* reverted viewer changes

* turn off normals by default

* fix docs

* finished todos on github

* remove xatlas

* xatlas

* black

Co-authored-by: Matt Tancik <tancik@berkeley.edu>
2022-12-02 10:49:19 -08:00
Ethan Weber 7346f97590 Quick fix to viewer OOM issue (#1053)
quick fix to viewer
2022-11-29 13:53:16 -08:00
Ethan Weber ee03a8f2c6 Switch colab pip install to git 2022-11-26 10:44:27 -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
b829499c12 Computing and predicting normals (#905)
* staring normals PR

* code runs but visualization looks bad

* Camera and world coordinate conventions (#889)

* documented coordinate conventions without a figure for now

* another sentence

* update frames docs

* explain intrinsics and extrinsics

* more comments

* fix build

* Start viewer with more accurate speed calculation (#899)

Start viewer with more accurate speed calc

* Minor doc updates (#903)

* fix conflicts

* code runs but visualization looks bad

* normals implemented and vis fixed. still debugging quality

* minor name change

* comment

* fix black

* lint

* predicting normals

* adding detach

* predicted normals

* improved normals prediction performance

* cleaning code

* cleaning code

* cleaning code

* adding type to function param

* fixing tensorf forward func

* reverting tensorf changes

* fix style with tensorf field

* adding normals check to tensorffield

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
Co-authored-by: terrance <terrance.3512@gmail.com>
2022-11-20 13:22:37 -08:00
Ethan Weber 93839ca3f0 Camera and world coordinate conventions (#889)
* documented coordinate conventions without a figure for now

* another sentence

* update frames docs

* explain intrinsics and extrinsics

* more comments

* fix build
2022-11-04 17:18:14 -07: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
Ethan WeberandMatthew Tancik 7a8f29f623 Add viewer version function (#801)
version function

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2022-10-19 08:54:27 -07:00
Ethan Weber c79de3af81 Quick fix to zmq ip address (#795)
quick fix to zmq host / ip address
2022-10-17 09:12:29 -07:00
Ethan Weber 555cec9387 Quick fix to ZMQ deadlock error (#784)
quick fix
2022-10-16 11:39:11 -07:00
Ethan WeberandEthan 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 f14fbb9153 Add script filenames to CLI docs (#758)
better docs
2022-10-11 14:26:42 -07:00
2150bad0e4 Reducing flicker artifacts for nerfacto method (#750)
* pose opt default nerfacto.

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

* added occupancy grid with placeholder until nerfacc is updated to query density from it

* added occupancy grid sampling as the level 0 in proposal hierarchy, relies on nerfacc 0.1.7 (on pypi)

* merge main

* merge main

* minor changes to sampling

* adjusted sample number

* refactor occ grid stuff, settle on decent params

* nograd proposal sampling

* param tweaks

* varying resolution proposal networks

* params

* merged main

* optimizer update

* remove occ grid

* remove double nerfacto samples

* set single jitter to true

* remove pdb

* more changes

* fix method defaults

* fix pylint

* remove occupancy fn

Co-authored-by: akristoffersen <akristoffersen@berkeley.edu>
Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2022-10-11 14:21:00 -07:00
Ethan Weber 23828b7ad8 Improving checkpoint logic (#757)
* working on checkpoint logic

* fixed checkpointing logic
2022-10-11 14:06:30 -07:00
Ethan WeberandNik Ska 569a698d4e Improve process data with filename filters and saving mp4s (#756)
* Updated Discord link

* ns-process-data to grab only jpg and png

* Updated alert for an incorrect folder

* minor format updates

* black

Co-authored-by: Nik Ska <dokluch@gmail.com>
2022-10-11 10:29:29 -07:00
Ethan Weber 9c52d5df19 fix discord link 2022-10-10 17:10:13 -07:00
Ethan Weber 8b354a498c v0.1.3 (#736) 2022-10-07 15:52:13 -07:00
Ethan Weber b37eae5bb2 save renders to a folder and bump viewer version (#733)
save data to renders folder. bump viewer
2022-10-07 15:14:18 -07:00
Ethan Weber 26a41923e5 update camera opt defaults (#732) 2022-10-07 14:59:02 -07:00
Ethan Weber 802c4daeaf v0.1.2 (#728)
bump version
2022-10-07 11:48:46 -07:00
Ethan Weber 45e5b528e5 fix optimizer dict (#729)
* bump version

* optimizer doc fix

* Update conf.py

* Update pyproject.toml
2022-10-07 11:42:36 -07:00
Ethan Weber ee94f23f83 turn on camera opt by default (#727)
* camera opt by default

* fix tests
2022-10-07 11:21:21 -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
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
Ethan Weber eaa16e535a max number of iterations logic (#699)
* update max iters

* deal with max iters
2022-10-06 13:07:37 -07:00
Ethan Weber ea591246cb semantic nerfw docs update (#704)
* download dataset docs

* Update semantic_nerfw.md
2022-10-05 17:19:03 -07:00
Ethan Weber f189da5bf3 update method commands (#685) 2022-10-05 02:06:26 -07:00
Ethan Weber 186d590105 remove print (#679) 2022-10-04 23:57:59 -07:00
Ethan Weber b8f85fb603 doubling nerfacto samples on eval (#675)
doubling samples and eval num ray options
2022-10-04 22:57:24 -07:00
Ethan Weber 8a98dc79f8 update image for viewer docs (#673)
update viewer docs with image
2022-10-04 21:57:56 -07:00
Ethan Weber 49b3acd11a docs update (#669) 2022-10-04 21:26:21 -07:00
Ethan Weber 02ca1c678b improving the pipeline docs (#665)
* change default websocket port

* docs

* more docs

* docs

* pipeline info
2022-10-04 20:31:19 -07:00
Ethan Weber cb056f1dfe remove creating new methods docs (#664) 2022-10-04 17:54:50 -07:00
Ethan Weber 6d918e0c76 add desolation scene (#666) 2022-10-04 17:48:37 -07:00
Ethan Weber dbabdb4f56 change default websocket port (#662)
change default websocket port
2022-10-04 17:17:58 -07:00
Ethan Weber 13e47b505e save when paused viewer works now (#654)
save when paused working
2022-10-04 12:58:15 -07:00
Ethan Weber 0695879673 [docs] model to method naming (#652)
* renamed model to methods

* name change
2022-10-04 11:53:16 -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 7ba68dde48 update pipeline docs (#643)
update docs
2022-10-03 23:25:49 -07:00
Ethan Weber 05ba4b6b00 semantic nerfw (#640)
transients not working right now
2022-10-03 20:36:32 -07:00
Ethan Weber 5a76b955cd adding --data alias (#630)
* adding --data alias

* fix black
2022-10-03 12:02:10 -07:00
Ethan Weber 75866f3a8f use literal instead of list for --vis (#628)
use literal instead of list
2022-10-03 09:58:42 -07:00
Ethan Weber 020662d4e4 pipeline documentation (#623)
* added images

* structuring
2022-10-02 23:35:49 -07:00
Ethan Weber 8bbf578f10 viewer panels update (websocket and hide images) (#620)
websocket update
2022-10-02 18:41:37 -07:00
Ethan Weber c20fed83bb moving around files (#616)
moved around files
2022-10-02 16:54:34 -07:00
Ethan Weber 9d15ba6a2a viewer port cleanup (#615)
* cleaned up port logic

* bump viewer version
2022-10-02 13:58:51 -07:00
Ethan Weber 6315df1fd2 don't download to /tmp (#612) 2022-10-02 12:13:46 -07:00
Ethan Weber e13d401b16 restructure codebase pre release (#602)
* moving a lot

* building
2022-10-01 16:36:25 -07:00
Ethan Weber 3e61e315bb updated download script (#592)
* updated download script

* rename

* remove omegaconf
2022-09-30 11:29:57 -07:00
Ethan Weber 81fa5f9ba5 misc proposal network modifications (#578)
* misc improvements

* cleanup

* remove distortion

* dist loss

* only dist changed now

* changes

* remove comment
2022-09-29 16:31:22 -07:00
Ethan Weber 43d588f35f specify a viewers list (#574)
* viewer list

* before master merge

* update script
2022-09-28 10:10:18 -07:00
Ethan Weber 13a03d3948 option to use different prop networks (#573)
* same or multiple prop networks

* update default
2022-09-27 20:08:14 -07:00
Ethan Weber 146332cfb6 Refactoring (data loading, semantic-nerf/nerf-w fixes, ...) (#8)
* in progress. camera_indices broken

* faster dataloader. starting on pixel sampler logic

* imagesampler and pixelsampler

* lint and black

* continuing merge

* pytest working

* fixed docs

* docs

* minor changes
2022-06-02 14:58:46 -04:00
Ethan Weber 96fda38a94 protobuf version (#110) 2022-05-30 10:31:49 -04:00
Ethan Weber 3226a1c989 CPU usage improvement and minor changes (#108)
* cpu fixes, masking logic but commented out, nerfw and semanticnerf in progress

* pylint
2022-05-26 10:18:08 -04:00
Ethan Weber 7d8beaaed4 Tiny-cuda-nn and fixed logic for instant-ngp (#102)
* correcting implementation for instant ngp

* instant ngp with tcnn

* black and pylint

* merged master
2022-05-23 12:05:41 -07:00
Ethan Weber fb440fedf3 Occupancy grid (#79)
* occupancy grid in progress

* visualizing occupancy grid. currently restructing field and renderer head outputs

* black and pylint. broke nerfw and semantic nerf but it's okay

* get_project_root
2022-05-17 19:09:25 -07:00
Ethan Weber 676beebb14 Setting near and far with scene bounds collider. Also LR schedules. (#74)
* some initial cuda code as I learn. using git to save progress.

* first cuda kernel for ray sampling that mostly works

* cleaning up code. working on lr. structs for scene bounds aabb

* added scene bounds collider code

* updated setup

* setup

* setup

* black

* including some files

* exporting env variable

* new file

* git workflows

* github actions

* github actions

* github actions

* removing env var
2022-05-16 14:03:19 -07:00
Ethan Weber 1c1a58c4e5 nerf-w and semantic-nerf initial implementations (#73)
* initial nerfw code

* nerfw should be implmented correctly now

* semantic nerf in progress. data loader is too slow and not clean right now

* added implementation of semantic nerf

* mend
2022-05-13 17:44:16 -07:00
Ethan Weber 5fb3d14304 Fixed testing and added graph abstractions (#64)
* abstracted some test logic and actually using test images now

* moved logging from trainer to graph

* fixing dataset path

* refactored instant ngp code to use inheritance

* fixed my run_train

* fixed data path

* fixed data dir
2022-05-09 11:54:40 -07:00
Ethan Weber 0b82c1188c Colmap type of dataset (from "friends" project) (#56)
* code to process the friends data. need to add masking

* code to process the friends data. need to add masking

* black

* trying to fix black

* black fixed

* updating black version
2022-05-05 08:45:30 -07:00
Ethan Weber 1f45b3e978 Merge pull request #45 from ethanweber/ethan/apr29_cpu_and_multigpu
ethan/apr29_cpu_and_multigpu
2022-04-29 15:32:10 -07:00
Ethan Weber 91c6c2d899 Merge pull request #43 from ethanweber/ethan/apr29_using_real_test_set
Validation images integration.
2022-04-29 09:27:39 -07:00
Ethan Weber 9912c812c0 Fixing Tuple converting to int error. 2022-04-25 08:45:35 -07:00
Ethan Weber daf5a6251a Merge pull request #38 from ethanweber/ethan/caching_for_dataloader
Added caching to the dataloader for faster training.
2022-04-23 12:48:28 -07:00
Ethan Weber a5b09b0769 Merge pull request #35 from ethanweber/ethan/test_set_integration
Fake version of test set with tensorboard.
2022-04-21 20:56:38 -07:00
Ethan Weber 0c3a72b8b3 Merge pull request #31 from ethanweber/tancik/dict_outputs
Switch to dictionary outputs
2022-04-21 13:28:50 -07:00
Ethan Weber ba7a2c33c4 Merge pull request #26 from ethanweber/eng/logger
Eng/logger
2022-04-19 21:53:45 -07:00
Ethan Weber 862d8047b3 Merge pull request #25 from ethanweber/vanilla_nerf_implementation
A (not-quite-correct) version of NeRF strung together.
2022-04-19 20:28:42 -07:00
Ethan Weber 0ac2708959 Merge pull request #22 from ethanweber/eng/distributed_training
Eng/distributed training
2022-04-17 09:48:00 -07:00