Commit Graph
87 Commits
Author SHA1 Message Date
Brent Yi 67be06009e Add option to change .ply output filename for Gaussian exports (#3467)
Add option to configure .ply output filename for Gaussian exports
2024-10-09 22:22:52 +00:00
Brent Yi 1bc1e1aaf6 Add max_frames + max_output_size arguments for Aria data processing (#3466)
* Add max_frames + max_image_size arguments for Aria data processing

* Change max_output_size
2024-10-06 21:22:16 -07:00
Brent Yi 33dce833ee Suppress wandb type error (#3397) 2024-08-29 17:21:45 -07:00
b707727950 Fix memory leak in full_images_datamanager.py (#3375)
* Fix memory leak in full_images_datamanager.py

* remove trailing space

* follow-up remove some deepcopy

---------

Co-authored-by: J.Y. <132313008+jb-ye@users.noreply.github.com>
Co-authored-by: Jianbo Ye <jianboye@amazon.com>
2024-08-23 11:04:32 -07:00
Brent Yi c669d865c1 Bump + run ruff (#3369)
* Bump + run ruff

* Fix notebook import
2024-08-19 11:23:14 -04:00
Brent Yi f97eb2e5f0 Bump viser to 0.2.3 (#3277) 2024-06-30 23:38:55 -07:00
Brent Yi 9b3cbc79bf Bump to 1.1.3 2024-06-18 00:59:14 +09:00
Brent Yi 012a47d8b0 1.1.2 2024-06-08 17:38:55 -07:00
Brent Yi d92d76b953 Bump version to 1.1.1 2024-06-08 14:05:21 -07:00
Brent Yi 3ac1b6bec7 Only load+undistort splatfacto images when they're used (#3043)
* Only load splatfacto dataset when it's used

* ruff

* typo fix

* Fix #2817; don't undistort for `ns-viewer --viewer.max-num-display-images 0`

* ruff
2024-04-04 23:25:04 +00:00
Brent Yi 8b728d4ec8 Fix progress bar for full images datamanager (#2969) 2024-02-28 11:41:03 -08:00
Brent Yi c491e3e101 Fix Nerfacto + Aria (#2950) 2024-02-26 18:16:54 +00:00
Brent Yi 4dcbfc55fb Show viewer resolution as WxH instead of HxW (#2948) 2024-02-23 18:21:02 +00:00
Brent Yi 29ddd2ca3a Support new MPS filenames for Project Aria point clouds (#2949)
* Support new point cloud filename for Project Aria point clouds

* Comment details
2024-02-23 03:26:59 +00:00
Brent Yi 6127ec0f72 Update viewer legacy docs (#2875) 2024-02-06 16:07:37 -08:00
Brent Yi 6436742c34 Upper-bound torch version for dev installs only (#2864) 2024-02-02 00:19:54 +00:00
Brent Yi 1bc5b424b4 Update viewer docs (#2826)
* Update viewer docs

* Typo
2024-01-26 22:30:50 -08:00
Brent Yi 3bade3a9dc Remove viewer build badge (#2819) 2024-01-24 23:11:22 -08:00
Brent Yi fb4f9f0060 Fix mask shape for Fisheye624 cameras (#2813) 2024-01-23 16:08:04 -08:00
Brent Yi 19a21d7773 Bump version to 1.0.0 (#2799)
Update pyproject.toml
2024-01-19 18:15:02 -08:00
Brent YiandJustin Kerr ff4002d343 Clean up ns-train {method} --help for not-yet-installed external methods (#2760)
* Clean up `ns-train {method} --help` for not-yet-installed external methods

* Ruff

* Ruff

* add clearer print statement

* Types? Not sure if this fixes it

---------

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2024-01-19 18:02:56 -08:00
Brent YiandJustin Kerr 70d83d4201 Remove legacy viewer from GitHub actions (#2798)
Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2024-01-19 16:42:50 -08:00
Brent Yi 6389cacd19 Gaussian splatting support for Aria (#2785)
* Gaussian splatting support for Aria

* Respect masks in splatting loss function
2024-01-19 11:09:37 -08:00
Brent YiandJustin Kerr c27b5cb65f Use github output format for ruff in CI (#2786)
* Use github output format for ruff in CI

* Fix

---------

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2024-01-19 09:29:50 +00:00
Brent YiandJustin Kerr 99073eb187 Don't throw away non-tensor objects in TensorDataclass (#2783)
* Don't throw away non-tensor objects in TensorDataclass

* Update test_tensor_dataclass.py

---------

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2024-01-19 01:18:19 -08:00
Brent Yi f55bd04ca6 Hotfix non-colmap nerfstudio datasets 2024-01-19 00:39:53 -08:00
Brent Yi 46847ab56b Bump tyro (#2792) 2024-01-18 20:19:28 -08:00
Brent Yi 368c9ecd12 Bump viser (#2779) 2024-01-17 15:35:08 -08:00
Brent Yi 05d305467f Reduce startup overhead (#2763)
* Reduce import overhead

* Bump tyro, suppress deprecated config values

* Bump viser

* Fix pyright
2024-01-17 01:42:10 +00:00
Brent YiandJustin Kerr 609dc3ea5e Remove unused make_share_url arg in ns-viewer (#2749)
* Remove unused make_share_url arg in ns-viewer

* Update docstring

* Ruff

---------

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2024-01-17 00:08:18 +00:00
Brent Yi 69ed6d4093 Improve viewer banner when server is bound to 0.0.0.0 (#2761)
* Improve viewer banner when server is bound to 0.0.0.0

* Add comment

* Update viewer.py
2024-01-13 20:31:39 +00:00
Brent Yi 55b7a2c8ef Update docs to recommend torch 2.1 (#2748) 2024-01-11 15:12:41 -08:00
Brent Yi 3b6ca91dbc Viewer depth compositing for Gaussian Splatting models (#2744)
* Viewer depth compositing for Gaussian Splatting models

* Tune
2024-01-11 04:04:00 +00:00
Brent Yi 7a8e31d84e Improved render panel for beta viewer (#2667)
* Continuous velocities for render splines

* Configure ruff line length

* Improved render preview

* No longer need to update camera FOV in render preview

* Details

* Polishing

* Cleanup

* Details

* Address pyright errors

* type: ignore for broken (?) Aria stub
2023-12-20 17:20:41 -08:00
Brent Yi ae00061cf5 Fix custom data links in README (#2671) 2023-12-12 22:31:12 +00:00
Brent YiandGina Wu 01d57b90dc Fix large dataset (> 512 images) training in viewer_beta (#2669)
* Fix large dataset (> 512 images) training in viewer_beta (#2586)

* fix index bug in update_camera_poses of viewer

* Set Ruff line lenth

---------

Co-authored-by: Gina Wu <42229107+ginazhouhuiwu@users.noreply.github.com>
2023-12-12 11:44:26 +00:00
Brent Yi 73fc3dcd63 Update dependencies for M1 Macs (#2665)
* Update dependencies for M1 Macs

* import newrawpy as rawpy

* Comment

* Add back rawpy for Linux

* Run black
2023-12-11 18:08:17 +00:00
Brent Yi c8c55521e8 Keyframe timing for beta viewer (#2638)
* Add keyframe timing to beta viewer

* Nits

* New keyframe timing logic

* Bump viser version
2023-11-30 00:52:37 +00:00
Brent Yi 1f5f0c792b Make spherical harmonics test more forgiving (#2607) 2023-11-14 00:00:21 -08:00
Brent Yi 042c7d1465 Bump tyro to 0.5.7 (#2393)
* Bump `tyro`

* tyro 0.5.7
2023-10-16 06:26:42 +00:00
Brent Yi d3934737a1 Upgrade pyright (#2526)
* Upgrade pyright

* Resolve pyright errors

* Suppress trimesh error

* Run ruff
2023-10-14 13:00:17 +08:00
Brent Yi c93b374d08 Don't deploy docs from pull requests (#2482) 2023-09-29 12:33:19 -07:00
Brent YiandJustin Kerr 3e1d4af821 Add share link support for beta viewer (#2445)
* Add share link support for beta viewer

* More consistent CLI experience

* fix viewer jitter by adding atomic update on camera pose

* change to make_share_url

* fix

* remove incorrect assert

---------

Co-authored-by: Justin Kerr <justin.g.kerr@gmail.com>
2023-09-19 16:22:55 -07:00
Brent Yi 6d51af1a24 viser 0.1.0, fix type checker errors (#2343)
* Pin to viser 0.1.0, fix type checker errors

* gui_folder => add_gui_folder
2023-08-15 23:15:35 +00:00
Brent Yi 72da747fc2 Remove system-level CUDA install from install instructions (#2289)
* Remove system-level CUDA install from Linux install instructions

* Remove system-level CUDA from Windows install instructions

* Un-flip CUDA 11.7 / 11.8
2023-08-01 22:50:22 +00:00
Brent Yi dab39c25b4 More robust install instructions (#2277)
Add cuda-toolkit install to readme/docs
2023-08-01 20:35:22 +00:00
Brent Yi d6bb8bd8e5 Fix use_appearance_embedding for instant-ngp (#1999)
* Attempt fixes for instant-ngp

* Run `ns-dev-test`

* Remove NGP field implementation

* Test nerfacto field instead of ngp field

* Black
2023-07-01 18:54:27 +00:00
Brent Yi 4d71cd2e95 Bump tyro (#2008) 2023-05-27 19:49:11 +00:00
Brent YiandMatt Tancik d542646c72 Switch to ruff (#1939)
* `isort` -> `ruff`

* `pylint` -> `ruff`

* Remove line

* More minor cleanup

* Better documentation for rules we are enabling

* Fix gitignore, run black

* vscode settings

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
2023-05-17 10:08:14 -07:00
Brent Yi 814db32ec4 More typing fixes (#1941)
* Fix more types

* Fix tests

* Minor cleaning

* Address comments

* Resolve linting errors

* Re-ignore pymeshlab type

* Add extra assert / error message to mipnerf model
2023-05-17 07:17:40 -07:00
Brent YiandMatt Tancik 6ba2a18b2b torchtyping => jaxtyping (#1838)
* Run `ruff --fix`

* Add jaxtyping migration script

* Run migration scripts + ruff + black

* Merge remote-tracking branch 'origin/main' into brent/jaxtyping

* black

* Fix lint

* fix lint

* Cleanup and more specific types

* Fixed annotation errors

* Fix more errors

* Fix annotation

* Delete _torchtyping_to_jaxtyping.py

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
2023-05-16 15:57:47 -07:00
Brent Yi f1b60d4641 Fix static type for dataparser configs (#1924) 2023-05-15 14:15:51 -07:00
Brent Yi 63c6303736 Bump minimum Python version to 3.8 (#1876)
* Bump minimum Python version to 3.8

* typing_extensions.Literal -> typing.Literal

* ns-dev-test

* typing_extensions.get_args => typing.get_args

* Format with older version of black

* Bump `black`

* Run black
2023-05-06 13:29:48 -07:00
Brent Yi c6abd3abcb Fix folder labels type annotation (#1805) 2023-04-24 08:52:07 -07:00
Brent Yi 63919c0db2 Docs fixes for viewer elements (#1770) 2023-04-18 19:15:29 -07:00
Brent Yi c1c7a3b283 Fix ns-install-cli (#1754)
* Make ns-dev-sync-viser-message-defs a tyro CLI to fix ns-install-cli error

* Fix pylint
2023-04-17 17:57:04 -07:00
Brent Yi 2ddb2631b5 Improve viewer element types (#1743) 2023-04-15 01:14:38 -07:00
6a7c8820b8 Viewer backend refactor (#1702)
* Copy in `viser` communication infrastructure

* Update background image

* Add build directory to fix viser HTTP server
May want to remove these later

* Copy in `viser` communication infrastructure

* Update background image

* Pass dataset vis using viser

* initial impl of ViewerParameter

* idk what i did but brent and matt know

* Suppress eslint typescript warnings

* implement ViewerElement base class, then ViewerButton, ViewerSlider, etc

* client -> server message setup

* multi folder stuff

* Stream controls over viser

* import

* add types to viewer_param.py

* Move another message to viser

* Update folder color

* Use non throttled messages

* multiple folders works

* Cleanup, more porting

* starting impl of control panel in viser

* More porting

* scenebox to viser

* Cleanup

* Fix render updates

* More cleanup, docs, typing

* start control_panel.py

* set_hidden logic but not merged in

* control_panel replicates behavior of existing control panel (visually), except for setting the list of output options. not yet integrated with viewer_utils.py for logic flow. also implemented set_disabled and set_hidden in javscript/ViewerElement side

* Remove some original leva components

* add some train util logic, attempt set_value, doesn't work on javascript side fully yet (value updates but not slider visually

* bye zmq

* missing call to decoder

* 'gui_set' works properly, control panel now replicates behavior of original

* remove print

* Fix status viewer message

* More cleanup

* support set_options in dropdown

* hiding buttons works correctly

* fix set_options, switch from cur_value to get_value()

* Fix slowdown

* output options

* colormap logic converted

* add handle to cb_hook

* fix some lambda bugs

* cleanup

* Save checkpoint logic readded

* Cleanup and minor fixes

* snappier ui

* Refactoring

* Fix state update bugs

* Bug fixes

* Write less to redux

* added comments to reducer code

* Render state machine (#1727)

* state machine works, but train step throttling not implemented

* more step logic, cleanup

* remove random try catcH

* mutex logic for render

* Update lock logic

* types and docs

* added some state machine logic to help rerenders

* merge

---------

Co-authored-by: Justin <justin.g.kerr@gmail.com>

* Refactor and cleanup

* More cleanup and docs

* docstring to gui_utils

* docstrings, rename viewer_param.py to viewer_elements.py

* Fix viewer, remove bridge stuff

* Render on connect

* Fix lint errors

* More eslint fixes

* render_freq logic

* better rerender logic for crop

* More cleanup

* Purge

* Cleanup

* Lint fixes

* Fix cache

* better parsing logic

* Fix infinite test

* More cleanup

* typo

* Update webdocs

* Update docs

* rerender on custom hooks

* add more docs

* Use shared utilities in `viser.infra`

* rework callback to use elements instead of handles

* Fix ESlint errors

* change naming of handle to element, add setter for value

* cleanup

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
Co-authored-by: Justin <justin.g.kerr@gmail.com>
Co-authored-by: Ethan Weber <eweb0124@gmail.com>
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-04-14 14:53:10 -07:00
Brent Yi 5495a8e146 Type and docs fixes (#1170) 2022-12-26 09:04:24 -07:00
Brent Yi c2ad46d60e More informative completion install error messages (#1068)
More informative completion install errors
2022-12-01 07:36:41 -08:00
Brent Yi 55db89d0c5 (minor) --trainer.load_dir => --trainer.load-dir in docs (#1010)
`--trainer.load_dir` => `--trainer.load-dir` in docs
2022-11-23 08:51:31 -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
Brent Yi ae55559c32 Fix completion install script for bash (#830)
* Fix completion install script for bash

* Update install.py
2022-10-25 22:44:44 +08:00
Brent YiandMatthew Tancik 192a7efcba Fix tab completion for PyPI installs, add py.typed (#777)
Add py.typed + tab completion scripts to package data

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2022-10-14 18:55:48 -07:00
Brent Yi 7390e5c026 Fix view_dataset.py (#626)
* Fix view_dataset.py

* Update view_dataset.py
2022-10-08 22:17:19 -06:00
Brent Yi 05d264a335 Reduced tyro overhead + helptext formatting (#719)
* `ns-train` helptext formatting for tyro 0.3.23

* Remove unused import
2022-10-06 13:33:42 -07:00
Brent Yi edbfccccfe Rename: dcargs -> tyro (#702)
Rename `dcargs` to `tyro`
2022-10-05 22:26:06 -07:00
Brent Yi 5ec8797b16 Fix viewer slider stepping past min/max limits (#693)
Fix viewer stepping past min/max limits
2022-10-05 10:43:40 -07:00
Brent Yi a8d9c4e0e1 Remove unused rich import (#670) 2022-10-04 21:28:08 -07:00
Brent Yi e9f56e127a Hide fixed args, fix method description formatting (#667) 2022-10-04 21:05:40 -07:00
Brent Yi 61c8c5b665 Bump dcargs, omit subcommand prefixes (#625) 2022-10-03 10:09:40 -07:00
Brent Yi e8a5941b24 Don't require model type for view_dataset.py (#568) 2022-09-28 12:25:10 -07:00
Brent Yi 7f38490ec0 Install completions for entrypoints, misc config tweaks (#569)
* Install completions for entrypoints, misc config tweaks

* Bump dcargs
2022-09-27 22:23:22 -07:00
Brent Yi 7c1734fe5c Scrollbar nits (#570)
Always show side panel scrollbar, get rid of nested scroll for cameras
2022-09-27 22:23:13 -07:00
Brent Yi 203d36c433 (minor) datamanger -> datamanager (#561)
`datamanger` -> `datamanager`
2022-09-27 11:54:14 -07:00
Brent Yi 1c0ede17a9 Bump dcargs to 0.3.9 (#522) 2022-09-22 18:18:08 -07:00
Brent Yi b752606749 Bump dcargs to 0.3.7 (#482) 2022-09-19 11:36:27 -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
Brent Yi 61022f7dbe Shorten dataparser subcommand (#420)
* Shorten dataparser subcommand

* Rename
2022-09-13 12:20:52 -07:00
Brent Yi 12958ce1c3 (Minor) Remove cli_from_base_configs from view_dataset.py (#376)
Remove cli_from_base_configs from view_dataset.py
2022-09-08 19:48:09 -07:00
Brent Yi 97b77c6c5f Bump dcargs, base config simplification (#368)
Updates for dcargs v0.3.0
2022-09-08 19:22:47 -07:00
Brent Yi fe5f46c0aa Config suggestions (#300)
* Config suggestions

* Add some TODO notes
2022-08-29 17:07:33 -07:00
Brent Yi 316d8ba0c2 Tweak TensorDataclass type hints 2022-07-15 23:01:15 -07:00
Brent Yi c5eecaec8d Bump instant-ngp optimizer eps for numerical stability (#134)
* bump optimizer eps to 1e-7 for instant-ngp

* instant-ngp optimizer eps: 1e-7 -> 1e-4
2022-07-13 23:44:45 -07:00
Brent Yi dd41eb3e34 Truncated exponential for fixing NaN in instant-ngp (#104)
* replace ngp softplus with exponential, fixes #11

* resolve pylint errors
2022-07-07 23:32:04 -07:00
Brent Yi 14d030ff6f Various minor fixes for typos and types (#105)
* minor fixes for typos and types

* run isort
2022-07-07 23:31:56 -07:00