Commit Graph
56 Commits
Author SHA1 Message Date
Jonáš Kulhánek 194b5d4e46 Fix docker attestation fail on forked repo PRs (#3423) 2024-09-12 09:43:36 -04:00
f86dbe6d45 Update dockerfile and add docker build action (#3283)
* Use github docker registry

* Fix DDP train for GPU in exclusive mode

* Improve docker image - compile gsplat, decrease image size

* Drop unrelated change

* Add build docker image action

* Rename build docker image action

* nit

* Remove commented line from Dockerfile

* Fix dockerfile when explicit source is specified

* Fix failing dynamo build for torch.compile

* Lock dockerfile and tcnn versions

* Add `torch.cuda.is_available()` condition

* Drop set_cuda_device

* Fix build docker image github action

* Docker build save disk space

* Set MAX_JOBS to limit resource usage for docker build

* Try bumping `MAX_JOBS` 2 => 4

* Install fixed gsplat version from nerfstudio's pyproject.toml

* Update docs

* Finish docker build action

* Fix ignores push when PR

---------

Co-authored-by: Gina Wu <ginawu98@gmail.com>
Co-authored-by: Brent Yi <yibrenth@gmail.com>
2024-09-05 10:12:21 +02:00
Jonáš Kulhánek 3a90cb529f Fix #2843 - safer typing (#2848) 2024-01-30 11:06:17 -08:00
Jonáš Kulhánek 4779f816d6 Add flag to disable apperance embedding (#2843) 2024-01-29 23:07:37 +00:00
Jonáš Kulhánek 38726da219 Fix tangential camera distortion (p1,p2 in opencv camera) (#2627) 2023-11-29 19:48:41 +00:00
Jonáš Kulhánek 85677d310f Fix torch.compile for torch 2.1 (#2577) 2023-11-02 09:28:11 +01:00
Jonáš Kulhánek b78d0faa12 ns-render - render all images (#2459)
* ns-render - render all images

* Fix commonprefix->commonpath

* Fix raw rendering
2023-10-01 22:12:48 +02:00
Jonáš Kulhánek 2864c52618 Fix COLMAP dataparser masks and depthmaps (#2467) 2023-09-25 08:37:08 -07:00
Jonáš Kulhánek 76f8bcf953 Disable loading colmap points by default (#2451) 2023-09-21 13:51:35 -07:00
Jonáš Kulhánek ef2fd3dbe1 Fix import error when tcnn installed but CUDA runtime not available (#2429) 2023-09-15 17:18:23 -04:00
Jonáš Kulhánek e9330d515d Colmap parser: fix downscale for complex paths (#2425) 2023-09-13 10:55:24 -07:00
Jonáš Kulhánek 570ccf3c0a Rename COLMAP 3D point features (#2417) 2023-09-11 09:00:44 -07:00
Jonáš Kulhánek ead9b37c65 Allow colmap parser to load 3D points (#2408) 2023-09-11 07:50:18 +00:00
Jonáš Kulhánek 6af0bcfbf8 Unify dataparser and method discovery (#2398)
* Unify external dataparser registration

* Unify dataparser and method discovery
2023-09-08 08:26:41 +00:00
Jonáš KulhánekandMatthew Tancik b3df46314c Remove breakpoint from colmap_dataparser (#2141)
Co-authored-by: Matthew Tancik <matt@lumalabs.ai>
2023-06-29 17:03:29 +00:00
Jonáš Kulhánek aa6c052660 Jkulhanek/colmap dataparser (#2115)
* Add COLMAP dataparser implementation

* Fix downscale_images input

* Add help to COLMAP dataparser
2023-06-25 17:08:17 +00:00
Jonáš Kulhánek ac6a83cc53 Fix pickling of VanillaDataManager (#2129)
* Fix pickling of VanillaDataManager

* Fix vanilladatamanager init
2023-06-25 18:46:07 +02:00
Jonáš Kulhánek 3214fcfeb5 Fix spherical harmonics #2081 (#2112) 2023-06-22 02:40:22 +00:00
Jonáš Kulhánek c68d622bbc Allow newer pycolmap for newer python (#2113) 2023-06-21 19:23:34 -07:00
Jonáš Kulhánek 3b0f7581d8 Reduce GPU memory usage in CacheDataloader (#1730)
* Reduce GPU memory usage in CacheDataloader

* Move also masks and seg.masks, depths to cpu

* Fix linter issues
2023-06-07 14:14:24 -04:00
Jonáš Kulhánek a0d5307dd7 [WIP] Fix model loading collate_fn non-static (#1990)
* Fix model loading collate_fn non-static

* Fix serialization

* Add tests to reproduce the error

* Comment the change to let the tests fail

* Finish changes
2023-05-29 00:56:41 -07:00
Jonáš Kulhánek 9643c1ece2 Fixes wandb runs resuming using WANDB_RUN_ID (#2004) 2023-05-26 10:29:26 +02:00
Jonáš Kulhánek 61e48108df Add warnings for (slower) Torch 1.x and Windows not supporting torch.compile (#1982)
Add warning for torch 1.x and windows
2023-05-23 15:18:53 -07:00
Jonáš Kulhánekandmachenmusik 3bc160cc7d Backward compatibility for torch 1.x and fix for windows (#1962)
* backward compatibility for torch 1.x and fix for windows

* Update pyproject.toml

* Update README.md

* Update README.md

(As per request)

---------

Co-authored-by: machenmusik <machenmusik@users.noreply.github.com>
2023-05-22 08:58:08 -07:00
Jonáš KulhánekandBrent Yi 9584fa9b39 Add pre-commit (#1949)
* Add pre-commit

* Add pre-commit to docs

---------

Co-authored-by: Brent Yi <yibrenth@gmail.com>
2023-05-18 07:13:58 -07:00
Jonáš Kulhánek 08e3a1f1a6 Drop backward compatibility for Torch 1.13 (#1948)
* Drop backward compatibility for Torch 1.13

* Fix lint errors
2023-05-18 09:12:51 +02:00
Jonáš Kulhánek ea3f25d662 Bump torchvision to match PyTorch (#1947)
Bump torchvision to match torch
2023-05-17 22:45:28 -07:00
Jonáš KulhánekandBrent Yi f481f5ebec Fix some typing problems (#1940)
* Fix some typing problems

* nerfstudio.data typing error fixes

* Add tiny fixes

* Remove ABC from pipeline

* Prevent circular imports

* Tweak ModuleList typing

* TrainingCallbackAttributes cleanup

* Various minor nits

* More nits

* Run `ruff`

---------

Co-authored-by: Brent Yi <yibrenth@gmail.com>
2023-05-17 17:36:56 -07:00
e898f562e6 Switching to Torch 2.0 by default. (#1922)
* Update requirements for torch 2.0

* Update docs

* Fix missing _LRScheduler import

* Fix pylint issues

* Update docs, drop 1.13

* Fix pip postfix version

* fix docs

* Allow python 1.13 (for now)

* Minor fix for torch.compile

* Switch to torch.compile

* ruff

* Fix test

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-05-17 16:03:17 -07:00
Jonáš Kulhánek 9b6290ea43 Discover external methods from CLI (#1934)
* Discover external methods from CLI

* Fix external method registration

* External method add docstrings

* Update docs: register custom method in external_methods.py
2023-05-16 22:15:47 +02:00
Jonáš Kulhánek 02f449b661 Implement gradient scaling (#1901)
* Implement gradient scaling

* Make grad scaling more general

* Fix pylint errors

* Fix lint error + change gradient scaling

* Fix issues with grad scaling

* Fix linting errors
2023-05-12 07:23:41 +02:00
Jonáš Kulhánek 935e308c93 Fix viewer when opened before train setup finishes (#1888)
* Fix viewer when opened before train setup finishes

* is_initialized fix docs
2023-05-09 19:52:05 +02:00
Jonáš Kulhánek 1147fe4d5c Make VanillaDataManager generic (#1868)
* Make VanillaDataManager generic

* Remove removed classes from docs

* Simplify generic datamanager

* Simplify code

* Add serialization tests
2023-05-06 09:54:52 -07:00
Jonáš Kulhánek 971c9eb307 Enable method config registration from env variable (#1869) 2023-05-04 20:53:52 +02:00
Jonáš Kulhánek 61bad4dab3 Fix flag name in tetra-nerf (#1870)
Fix flag name for tetra-nerf
2023-05-04 09:22:32 -07:00
Jonáš Kulhánek 686e995dd6 Tetra-NeRF docs - fix versions and table formatting. (#1864)
* Add Tetra-NeRF to the docs

* Fix versions in tetranerf docs
2023-05-03 14:50:30 -07:00
Jonáš Kulhánek f4064aa593 Add Tetra-NeRF to the docs (#1862)
* Add Tetra-NeRF to the docs

* Add memory requirements + different model configurations
2023-05-03 22:18:07 +02:00
Jonáš Kulhánek 231573bd8e Fix profiler for PyTorch 2.0 (#1812)
* Fix profiler for torch v2.0

* Add back type for time_function
2023-04-25 18:55:44 +02:00
Jonáš Kulhánek ea14152ae6 Add PyTorch profiler to support tracing of forward/backward calls (#1761)
* Add PyTorch profiler support

* Add support for wrapped code, fix linting errors

* Update docs
2023-04-18 20:29:09 +02:00
Jonáš Kulhánek 6c8739ece2 Respect wandb environment variables (#1738) 2023-04-14 16:28:00 +02:00
Jonáš Kulhánek fd6cc84808 Add support for torch v2.0.0 (#1713)
Fix missing torch._six namespace
2023-04-12 19:17:43 +02:00
Jonáš Kulhánek c0464f8a91 Adds util function to convert transformed poses back + tests (#1594)
Improves tests of ns-process-data images +
Adds util function to convert poses back from transformed coordinates.
2023-03-19 12:09:33 +01:00
Jonáš Kulhánek 2b8d5a9e5c Adds ns-process-data images tests and fixes #1586 (#1591)
* Adds ns-process-data images tests and fixes #1586

* Fix missing colmap and ffmpeg in github actions
2023-03-12 00:12:14 +01:00
Jonáš Kulhánek d9a391f79a Fixed: MinimalDataParser add options, allow Nerfstudio data format to specify test indices (#1586)
* MinimalDataParser add options, allow Nerfstudio data format to specify test indices

* Switch from indices to filenames and add tests

* Fix  #1581

* Fix changed interface
2023-03-11 22:14:45 +01:00
Jonáš Kulhánek c61d3e9387 MinimalDataParser add options, allow Nerfstudio data format to specify test indices (#1541)
* MinimalDataParser add options, allow Nerfstudio data format to specify test indices

* Switch from indices to filenames and add tests
2023-03-09 19:14:24 +01:00
Jonáš Kulhánek 955497fcb2 Add weight-decay option to RAdam optimizer (#1525) 2023-02-27 09:21:00 -08:00
Jonáš Kulhánek 7309273d92 Add support for more colmap camera models in ns-process-data (#1500)
* Add support for more colmap camera models in ns-process-data

* Fix bugs introduced in #1457
2023-02-26 18:53:08 +01:00
Jonáš Kulhánek 079f419e54 Fixes bug introduced in #1499 preventing load_from_checkpoint to work correctly (#1501)
* Call load_state_dict on model classes

* Fixing bug introduced in #1499
2023-02-25 08:06:08 -08:00
Jonáš Kulhánek 93359b131e Call load_state_dict on model classes (#1499) 2023-02-25 08:00:04 +01:00
Jonáš Kulhánek 7e9af33c03 ns-process-data: fix image renaming for the --skip-colmap case (#1459)
* Fix ns-process-data with skip colmap

* Fix docstring

* Fix pylint problem

* Change OrderedDict to dict
2023-02-24 20:40:52 -08:00
Jonáš Kulhánek 97498e3223 Improve ns-install-cli (#1396)
* Improve ns-install-cli

* Remove unused code

* ns-install-cli conda specify encoding explicitly

* Fix missing directory in ns-install-cli

* Implement ns-install-cli deactivate for conda env

* ns-install-cli: conda create deactivate.d
2023-02-15 17:46:55 +01:00
Jonáš Kulhánek 6368340aa2 Add ns-viewer command to run viewer only with model in eval mode (#1379)
* Add ns-viewer command to run only viewer with model in eval mode

* Remove profiler and logger

* Fix ns-viewer

* ns-viewer remove writer.setup_local_writer

* ns-viewer add writer.setup_local_writer

* ns-viewer: update docs

* Delete outputs
2023-02-09 17:31:16 -08:00
Jonáš Kulhánek 27b71325ff Add support for is_fisheye flag in ingp transforms.json (#1385) 2023-02-09 17:23:33 -08:00
Jonáš KulhánekandMatthew Tancik 2ff1d3b19e Improve ns-process-data images when using existing COLMAP model (#1371)
* Allow skipping copy+downscale of images in ns-process-data, fix bug when using --skip-colmap on images.bin with non-standard image names

* Rename flags and improve error messages

---------

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2023-02-07 13:08:14 -08:00
Jonáš Kulhánek 6136745d75 Fix ns-train help (#1370) 2023-02-07 09:49:09 -08:00
Jonáš Kulhánek 59f71eda0e Allow methods configs to be discovered from external packages. (#1357)
* Allow method_config to be registered from external packages

* Add license

* Add MethodSpecification class + fix linter errors

---------
2023-02-06 13:25:33 -08:00