* Document how to use equirectangular sensor with metashape
* equirectangular sensor is actually supported by nerfstudio!
* Update custom_dataset.md
* equirectangular: fix COLMAP workflow
* metashape_utils.py: black
---------
Co-authored-by: Frédéric Devernay <f-dy@users.noreply.github.com>
* Refactor of image and video dataset conversion
The classes to convert images and video to a NerfStudio
dataset are moved to the main repo and refactor:
* Code duplications are removed
* Import of the class is now done from nerfstudio package instead of
scripts
* Doc formatting nits
* Doc formatting
---------
Co-authored-by: Brent Yi <yibrenth@gmail.com>
* Exposed number of actual frames to extract for more transparency
* Fixed off-by-one error in calculation of frames to extract.
* Added math import
* Switched print statements to CONSOLE.print
---------
Co-authored-by: jackson-waschura <jwaschur@calpoly.edu>
* allow periods within filename, not only for file extension
* don't assume all images are the same resolution
* black reformatting
* Move variable resolution collate logic into vanilla datamanager
* good catch pylint
* now that vanilla supports variable resolution, remove VariableResDataManager
* remove comment
* CONSOLE.print
* avoid `IndexError: tensors used as indices must be long, byte or bool tensors`
* use large dataset parameters for phototourism
* improve metashape data import
- support multiple sensors
- support fisheye and equirectangular sensors
- support multiple components with transforms
- fix bug when image name has a '.' in it, excluding the prefix separator
* metashape_util: fix string formatting
---------
Co-authored-by: Frédéric Devernay <f-dy@users.noreply.github.com>
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
* removed insta360 and also updated equirect images docs to include cropping
* removed unused import
---------
Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
* MinimalDataParser add options, allow Nerfstudio data format to specify test indices
* Switch from indices to filenames and add tests
* Fix #1581
* Fix changed interface
* 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
* 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]
* 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>
* 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>
This fix allows loading Metashape XML files which
contain an additional uncalibrated sensor.
Metashape XML format keeps unmatched images but
assignes a dummy sensor to them. The sensor has
no calibration data.
Co-authored-by: gilureta <gilureta@amazon.com>
* 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>
* 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>