Commit Graph
41 Commits
Author SHA1 Message Date
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