kangpeilun/VastGaussian

python train_vast.py : ValueError: min() arg is an empty sequence

Opened this issue · 8 comments

python train_vast.py ....

  File "E:\train_vast.py", line 291, in <module>
    train_main()
  
  File "E:\train_vast.py", line 283, in train_main
    training(lp, op, pp, args.test_iterations, args.save_iterations,
  
  File "E:\train_vast.py", line 44, in training
    big_scene = BigScene(dataset)  # 这段代码整个都是加载数据集,同时包含高斯模型参数的加载
  
  File "E:\VastGaussian_scene\datasets.py", line 77, in __init__
    DataPartitioning = ProgressiveDataPartitioning(scene_info, self.train_cameras[resolution_scales[0]],
  
  File "E:\VastGaussian_scene\data_partition.py", line 61, in __init__
    self.run_DataPartition(train_cameras)
  
  File "E:\VastGaussian_scene\data_partition.py", line 66, in run_DataPartition
    partition_list = self.Position_based_data_selection(partition_dict)
  
  File "E:\VastGaussian_scene\data_partition.py", line 176, in Position_based_data_selection
    ori_point_bbox=self.get_point_range(points),
  
  File "E:\VastGaussian_scene\data_partition.py", line 138, in get_point_range
    return [min(x_list), max(x_list),

ValueError: min() arg is an empty sequence

I also got the same error. Did you find any solutions?

Which dataset did you use for the test? I have not encountered such problems with tandt/train data

I am encountering a ValueError: min() arg is an empty sequence error when running train_vast.py. I used COLMAP to generate the datasets. The same datasets work fine with train.py, but the error occurs with train_vast.py.
Below is the dataset used:
image

I'm facing the same problem.
The solution that worked for me was replacing --plantform threejs with --plantform tj in the arguments to run.
I wrote about it in #21

The same problem occurs! return [min(x_list), max(x_list), ValueError: min() arg is an empty sequence,is there any solutions?The dataset I used is my own data that COLMAP exported.

我也碰见同样的问题?请问怎么解决。数据集用train.py可以运行

Hello, has anyone found a solution yet? Thanks in advance!

I got same problem when use threejs "--pos "0 0 0" --ros "0 0 0 0 0 0 "" ,anyway to fix it?