nerf2mesh icon indicating copy to clipboard operation
nerf2mesh copied to clipboard

ValueError: Cannot take a larger sample than population when 'replace=False'

Open stupidyoh opened this issue 2 years ago • 2 comments

Hello

I use my own image dataset that i captured. But when i run stage 0 code as following.

python main.py data/banana2/ --workspace trial_banana2 -O --data_format colmap --bound 1 --dt_gamma 0 --stage 0 --clean_min_f 16 --clean_min_d 10 --visibility_mask_dilation 50 --iters 10000 --decimate_target 3e5 --sdf

I got this error message.

Traceback (most recent call last): File "/home/vision/nerf2mesh/main.py", line 258, in test_loader = NeRFDataset(opt, device=device, type='test').dataloader() File "/home/vision/nerf2mesh/nerf/colmap_provider.py", line 383, in init fs = np.random.choice(len(self.poses), 5, replace=False) File "mtrand.pyx", line 965, in numpy.random.mtrand.RandomState.choice ValueError: Cannot take a larger sample than population when 'replace=False'

I test with various objects and input images. Usually works well, but sometime error happen. I want to know why this error occurs. What can I do to solov this problem.

Thank you.

stupidyoh avatar Aug 16 '23 08:08 stupidyoh

I also encountered this problem, have you solved it?

a1445605672 avatar Nov 16 '23 09:11 a1445605672

I'm having the same problem, have you two solved the problem and can you guide me?

samutou avatar Nov 08 '24 12:11 samutou