Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range #26

Open
Fanie-Visagie opened this issue Jul 15, 2024 · 2 comments
Open

IndexError: list index out of range #26

Fanie-Visagie opened this issue Jul 15, 2024 · 2 comments

Comments

@Fanie-Visagie
Copy link

Fanie-Visagie commented Jul 15, 2024

Appreciate some help as I have spent DAYS trying to install this...

(models) D:\CF-3DGS>python run_cf3dgs.py -s ./data/TelecomFrance/ --mode train --data_type custom

C:\ProgramData\miniforge3\envs\models\lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
Downloading: "https://github.com/intel-isl/MiDaS/zipball/master" to C:\Users\perso/.cache\torch\hub\master.zip
Traceback (most recent call last):
File "D:\CF-3DGS\run_cf3dgs.py", line 44, in
trainer = CFGaussianTrainer(data_path, model_cfg, pipe_cfg, optim_cfg)
File "D:\CF-3DGS\trainer\cf3dgs_trainer.py", line 64, in init
super().init(data_root, model_cfg, pipe_cfg, optim_cfg)
File "D:\CF-3DGS\trainer\trainer.py", line 50, in init
self.category = data_info[-2]
IndexError: list index out of range

The directory that contains my images is: D:\CF-3DGS\data\TelecomFrance and they are of .png

@zxr-mhy
Copy link

zxr-mhy commented Jul 22, 2024

CF-3DGS/trainer/trainer.py line 48:
data_info = data_root.split('/'): change / modify to double \

@dadffaser
Copy link

data_info = data_root.split('\') can solve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants