a-lemus96 / fs-nerf

PyTorch implementation for experimenting with frequency regularized Neural Radiance Fields.
1 stars 0 forks source link

Solve `InvalidParameterError` for val dataset #53

Closed a-lemus96 closed 8 months ago

a-lemus96 commented 8 months ago

The following error was encountered when instantiating the validation dataset

sklearn.utils._param_validation.InvalidParameterError: The 'n_clusters' parameter of KMeans must be an int in the range [1, inf). Got 4.0 instead.

Originally posted by @a-lemus96 in #52

a-lemus96 commented 8 months ago

Problem was due to floating point result from dividing args.n_imgs by 2. Changed / operator to // to perform floor division.