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

58 Commits

Author SHA1 Message Date
Rohan Mathur
2838cfc8a5
Adding the crop code made for videos to images (#1598)
* added equirect support

* added cropping for planar image input

* random comment

* bug fix and running command

* added crop-factor to docstrings
2023-03-14 12:04:28 -07:00
Pablo Vela
630babacd6
Add option to use Pixel Perfect SFM (#1554)
add pixsfm option when using hloc
2023-03-12 16:32:33 -04:00
Rohan Mathur
403ab26f0c
Changed percent-crop to crop-factor so it's less confusing (#1575)
* changed percent-crop arg to crop-factor so it's more clear that it's a float

* added error if crop values are less than 0 or more than 1

* added value hint and changed error to console thing

* added imports

* fixed linter issues

* refixed linter issues
2023-03-09 12:23:50 -08:00
Rohan Mathur
982e527bee
Added video cropping for equirectangular and made it independent of mask in normal videos (#1542)
* started bottom crop functionality

* first draft of cropping

* cleaned up and debugged cropping equirectangular and re added mask stuff just without percent crop

* added nonequirectangular video crop

* added left right crop for equirectangular

* shortened equirect utils

* finished regular video cropping

* removed print, added underscores, changed type to List[float]
2023-03-02 18:24:59 -08:00
Georgy Ponimatkin
4a9764d3c4
Fixing data processing script when depth is not used (#1527)
Update process_data.py

Fix image_id_to_depth_path = {} to image_id_to_depth_path = None
2023-02-27 18:23:58 -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
Paul Wais
5c73766653
SFM: sfm-based depth, some breadcrumbs for pycolmap (#1457)
* save

* save

* more cleanup

* save

* save

* update phototourism

* save

* works

* works

* cleanup

* cleanup

* lint

* python3 default

* cleanup
2023-02-25 21:10:53 -08: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
Rohan Mathur
796fad8bcb
Equirectangular input (#1446)
* started adding equirectangular to process_data

* was multiplying frame by 255 twice

* added equi2planar configs for the 3 presets

* fixed presets

* setup process data

* changed variable name and comment

* fixed middle preset

* removed third preset

* added progress bar and fixed video for equirectangular input

* fixed whitespace stuff

* added pyequilib dependencey

* Updated for JPG support for equirectangular image input

Updated process_data_utils for JPG support for equirectangular image input, since even though .jpg images worked, .JPG images (output from 360 camera software) were not working.

* changed file type matching

* added equirect utils

* added license header

* added docstring on equirect utils

* added heuristic for image size

* added heuristic for videos

* fixed linty stuff

* shortened code

* raised error if no ims in directory

* Updated ProcessVideo for fixing directories for equirectangular input

Updated the ProcessVideo for equirectangular input to make the image directory have the correct perspective projections. The original equirectangular images are copied into a temp_images folder which also holds the perspective projections. This folder is deleted once the perspective projections are copied into the process data images folder.

---------

Co-authored-by: cvachha <cyrus.vachha@yahoo.com>
Co-authored-by: cvachha <cvachha549@gmail.com>
2023-02-20 10:58:42 -08:00
Sacha Lewin
8e4ae6bebf
Allow use of black or white background in Nerfacto models (#1441)
* Allow black/white background color in Nerfacto

* Use white background in Nerfacto Blender Benchmark

* Fixed unused import

* Updated index for license headers script
2023-02-17 20:39:10 -08:00
Matthew Tancik
71eacd5932
Update reality capture doc (#1404) 2023-02-11 10:51:22 -08:00
Jonáš Kulhánek
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
machenmusik
fad5a839aa
double-quote filenames in process-data commands so that on Windows, paths with spaces don't fail (#1347)
* double-quote filenames in commands so that on Windows, paths with spaces don't fail

* reformatting by black
2023-02-03 21:01:37 -05:00
ManuConcepBrito
828d6bc893
Depth data loading for Polycam LiDAR data (#1253)
* Add depth data loading for polycam datasets

* misc: missing arguments in process_data_utils.downscale_images

* Move processing to polycam_utils

* delete unused imports

* process_data_utils: patch for frame%05d issue

* accidentally deleted neighbor flag from ffmpeg

* wrong ffmpeg command

* upscale directly

* redundant comment

* remove unused imports

* black formatting
2023-01-24 14:45:13 -08:00
Matthew Tancik
af41819611
Add support for RealityCapture (#1055)
* Add support for RealityCapture

* Fix coordinate bug

* Remove transform

* Update focal lengths

* isort
2023-01-19 20:50:02 -08:00
Matthew Tancik
5b50740f45
Add cropping options to data processing (#1236) 2023-01-16 15:34:20 -08:00
RandomPrototypes
740cdebbb5
WIP : support for hloc toolbox (superpoint, superglue, netvlad,...) (#1026)
* basic support for hloc (includes netvlad, super point, superglue in colmap), just a first test, not ready yet

* add exhaustive match option for hloc

* add command line option to choose the type of feature, matcher,...

* make hloc an optional dependency, update doc, and small bug fixes

* fix missing imports

* fix warnings, pylint,...

* fix overwrite previous commits

* fix import order from isort

* move find_tool_feature_matcher_combination to process_data_utils, add type hints and Args/Returns doc

* error message when no valid combination of sfm tool, feature type, and matcher

Co-authored-by: RandomPrototypes <delmotte_ar@yahoo.fr>
2022-12-03 22:45:48 -08:00
Matthew Tancik
666b43a577
Check is metashape xml is present (#1044) 2022-11-28 16:39:09 -08:00
cnsumner
3d70b4e614
Add support for insta360 single-file format (#1024)
* Add support for insta360 single-file format

* Improve some variable names

* Add documentation for crop_percentage parameter

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2022-11-28 13:00:10 -08:00
Matthew Tancik
0a57c7c72b
Ignore non-image files in ns-process-data (#1040)
* Ignore non-image files in ns-process-data

* Update reqs

* bump ipython
2022-11-28 10:38:37 -08:00
Alexander Kristoffersen
aac7aa4786
Typo in ProcessRecord3D error (#1027)
small error fix.
2022-11-26 13:16:27 -08:00
Matthew Tancik
2c64ba5b6a
Handle missing metashape data (#1015)
* Handle missing metashape data

* lint
2022-11-23 16:21:36 -08:00
Matthew Tancik
4065bb4733
Add Metashape support (#989)
Add metashape support
2022-11-20 14:55:41 -08:00
Matthew Tancik
532f8067fd
Refactor process data (#976) 2022-11-18 09:19:44 -08:00
Matthew Tancik
95a27ecba5
Add support for polycam (#958)
* Add support for polycam

* Modify blur score

* Support processing zip and add undistort fallback

* Created using Colaboratory

* Update docs

* Update demo.ipynb

* Address comments

* fix lint
2022-11-15 17:55:29 -08:00
Matthew Tancik
28b86f8718
Allow specifying colmap path (#917) 2022-11-07 12:11:10 -08:00
Alexander Kristoffersen
0afcd1774b
Record3D Dataparser moved to ns-process-data script. (#872)
* init commit.

* added docstring.

* added tyro command.

* bugfix.

* added max dataset size logic.

* string cleanup.

* updated depracation warning.

* typo.
2022-11-03 10:43:52 -07:00
Terrance Wang
ddd7fc1d42
always list paths as posix paths (#860) 2022-10-31 13:46:34 -07:00
Matthew Tancik
44500a7d97
Add more debug logs to data processing (#867) 2022-10-31 11:15:52 -07:00
Matthew Tancik
a32b2d5391
Fix ffmpeg call (#856) 2022-10-30 09:16:26 -07:00
Terrance Wang
af47a05e2f
Terrance/process data fix (#842)
* removing quotes on ffmpeg command

* fixing insta360

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
2022-10-28 00:22:43 +03:00
Alexander Kristoffersen
18a6a71a1a
Pathlib Python 3.7 Compatibility Fix (#831)
small fix.
2022-10-25 10:01:39 -07:00
Terrance Wang
3652d3112f
removing quotes on ffmpeg command (#822) 2022-10-22 20:06:25 -07:00
Matthew Tancik
9bed69601f
Support python 3.7 (#802)
* Support python 3.7

* Update docs
2022-10-18 16:49:27 -07:00
Matthew Tancik
8dedbe8787
Update insta360 docs (#793) 2022-10-16 18:05:23 -07:00
Matthew Tancik
8a461924f1
Refine intrinsics with COLMAP (#785)
Refine intrinsics with colmap
2022-10-16 12:53:11 -07:00
Matthew Tancik
ec901c893d
Add support for insta360 data (#781)
* Add support for insta360 data

* Update docs

* Revert unrelated changes

* remove cropping on normal videos

* Address comments
2022-10-15 22:25:21 -07:00
Ethan Weber
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
Matthew Tancik
9252a46273
Check ffmpeg before rendering video (#715)
* check ffmpeg before rendering video

* Fix imports
2022-10-06 09:41:36 -07:00
Brent Yi
edbfccccfe
Rename: dcargs -> tyro (#702)
Rename `dcargs` to `tyro`
2022-10-05 22:26:06 -07:00
Matthew Tancik
37907698f2
update cli docs for process-data (#617)
* update cli docs for process-data

* Update recs

* fix toml
2022-10-02 18:09:57 -07:00
Matthew Tancik
531361a6aa
Remove remaining nerfactory (#598)
* Remove remaining nerfactory

* Lint
2022-10-01 12:28:15 -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
1f83ad03db
Rename to nerfstudio (#589) 2022-09-29 23:42:15 -07:00
Ethan Weber
cf34ef4bd0
rename files and add project scripts (#566)
* scripts

* b

* fix file
2022-09-27 15:02:55 -07:00
Matthew Tancik
d6139f25d4
Increase jpg quality for downscaled images (#556) 2022-09-27 09:49:46 -07:00
Matthew Tancik
e4982f7ed1
Update colmap options (#536)
* Add vocab tree option to data parser

* update import
2022-09-24 23:35:21 -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
Ethan Weber
821333811b
update num_downscales default to 3 (2x, 4x, 8x) (#466)
update num_downscales default
2022-09-18 17:43:15 -07:00
Matt Tancik
65ab15b5ce Update error handling in data processing script 2022-09-14 08:59:22 -07:00