nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
8.87k stars 1.18k forks source link

Unable to provide the down-scale factor as 1 for splatfacto #3221

Closed sumanttyagi closed 1 week ago

sumanttyagi commented 2 weeks ago

when i providing the downscale-factor as 1 it is not running giving the below error :

(nerfstudio1) C:\sumant_folder\>ns-train splatfacto --data my data\colmappano_8 --downscale-factor 1
╭─ Unrecognized options ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Unrecognized or misplaced options: --downscale-factor                                                                       │
│ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ Perhaps you meant:                                                                                                          │
│     --downscale-factor {None}|INT                                                                                           │
│         How much to downscale images. If not set, images are chosen such that the max dimension is <1600px. (default: None) │
│             in ns-train splatfacto colmap --help                                                                            │
│             in ns-train splatfacto colmap --help                                                                            │
│             in ns-train splatfacto colmap --help                                                                            │
│         How much to downscale images. (default: 1)                                                                          │
│             in ns-train splatfacto dycheck-data --help                                                                      │
│             [...]                                                                                                           │
│     --scale-factor FLOAT                                                                                                    │
│         How much to scale the camera origins by. (default: 1.0)                                                             │
│             in ns-train splatfacto arkit-data --help                                                                        │
│             in ns-train splatfacto arkit-data --help                                                                        │
│             in ns-train splatfacto arkit-data --help                                                                        │
│             in ns-train splatfacto blender-data --help                                                                      │
│ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ For full helptext, run ns-train splatfacto --help

Please tell me let's say my i want to check it for larger size image more than 1600 px want to select the raw size of the image how to do give if down_scale_factor as 1 is not honored

sumanttyagi commented 2 weeks ago

MAX_AUTO_RESOLUTION = 1600 how do i give the downscale as 1

ichsan2895 commented 2 weeks ago

Please try this

ns-train splatfacto colmap --data path/to/your/colmap/dataset --downscale-factor 1
jb-ye commented 2 weeks ago

Try ns-train splatfacto --data my data\colmappano_8 nerfstudio-data --downscale-factor 1

See https://github.com/nerfstudio-project/nerfstudio/blob/2e3c3c179a4cbfba96c6ecfa6a9d1bb3d21dc569/nerfstudio/scripts/train.py#L25-L27

sumanttyagi commented 2 weeks ago

Try ns-train splatfacto --data my data\colmappano_8 nerfstudio-data --downscale-factor 1

See

https://github.com/nerfstudio-project/nerfstudio/blob/2e3c3c179a4cbfba96c6ecfa6a9d1bb3d21dc569/nerfstudio/scripts/train.py#L25-L27

this does not works please check

jb-ye commented 2 weeks ago

@sumanttyagi Sorry, could you try this (I misorder parameters in previous version):

ns-train splatfacto nerfstudio-data --data my data\colmappano_8  --downscale-factor 1
ichsan2895 commented 1 week ago

Did your problem solved? Please close it if it works :+1: