gaussian-splatting icon indicating copy to clipboard operation
gaussian-splatting copied to clipboard

AssertionError: Could not Recognize Scene Type in train.py due to Folder Structure or Missing Files

Open luisjm1992 opened this issue 1 year ago • 8 comments
trafficstars

I am working in a Conda environment located at D:\Library\model\gaussian_splatting, where I successfully created and configured the environment. After preparing and storing cropped images in the following directory structure, I proceed with the next execution steps.

Image folder structure:

D:\Library\gaussian-splatting\location\input
|--- input
      |--- <image 0>
      |--- <image 1>
      |--- ...

Steps Taken: python convert.py -s gaussian-splatting\location\input

This process creates a folder called distorted inside location, which contains the following files and folders:

distorted
|--- sparse
|--- database
|--- database.db-shm
|--- database.db-wal

Next, I activated the model environment with:

conda activate D:\Library\model\gaussian_splatting

I then tried to run the following training command:

python train.py -s location/input

Result: I received the following error:


splatting>python train.py -s images/input
Optimizing
Output folder: ./output/be20adee-d [13/11 10:03:31]
Tensorboard not available: not logging progress [13/11 10:03:31]
Traceback (most recent call last):
  File "train.py", line 282, in <module>
    training(lp.extract(args), op.extract(args), pp.extract(args), args.test_iterations, args.save_iterations, args.checkpoint_iterations, args.start_checkpoint, args.debug_from)
  File "train.py", line 51, in training
    scene = Scene(dataset, gaussians)
  File "D:\Library\gaussian-splatting\scene\__init__.py", line 49, in __init__
    assert False, "Could not recognize scene type!"
AssertionError: Could not recognize scene type!

I have read in similar error reports that this usually occurs when the folder structure is unexpected or files are missing. I'm wondering if the structure I followed is incorrect or if any files are missing. I followed the steps as indicated but haven’t managed to solve the issue yet. I would appreciate any help you can provide.

`

luisjm1992 avatar Nov 13 '24 15:11 luisjm1992