NVlabs / CF-3DGS

Other
394 stars 43 forks source link

TypeError: 'NoneType' object is not subscriptable #36

Closed jiangyijin closed 2 months ago

jiangyijin commented 3 months ago

I'm encountering this issue while training with the Tank dataset. How should I resolve it? (cf3dgs) ubuntu@ml-ubuntu20-04-desktop-v1-0-108gb-100m:/data/cf3dgs/CF-3DGS$ CUDA_VISIBLE_DEVICES=1 python run_cf3dgs.py -s data/Tanks/Francis \

                 --mode train \
                 --data_type tanks

Downloading: "https://github.com/intel-isl/MiDaS/zipball/master" to /home/ubuntu/.cache/torch/hub/master.zip Rotation type : 6d Reading camera 150/150 Loading Training Cameras Loading Test Cameras Number of points at initialisation : 19361 Train images: 131 ['000401', '000403', '000405', '000407', '000411', '000413', '000415', '000417', '000419', '000421', '000423', '000427', '000429', '000431', '000433', '000435', '000437', '000439', '000443', '000445', '000447', '000449', '000451', '000453', '000455', '000459', '000461', '000463', '000465', '000467', '000469', '000471', '000475', '000477', '000479', '000481', '000483', '000485', '000487', '000491', '000493', '000495', '000497', '000499', '000501', '000503', '000507', '000509', '000511', '000513', '000515', '000517', '000519', '000523', '000525', '000527', '000529', '000531', '000533', '000535', '000539', '000541', '000543', '000545', '000547', '000549', '000551', '000555', '000557', '000559', '000561', '000563', '000565', '000567', '000571', '000573', '000575', '000577', '000579', '000581', '000583', '000587', '000589', '000591', '000593', '000595', '000597', '000599', '000603', '000605', '000607', '000609', '000611', '000613', '000615', '000619', '000621', '000623', '000625', '000627', '000629', '000631', '000635', '000637', '000639', '000641', '000643', '000645', '000647', '000651', '000653', '000655', '000657', '000659', '000661', '000663', '000667', '000669', '000671', '000673', '000675', '000677', '000679', '000683', '000685', '000687', '000689', '000691', '000693', '000695', '000699'] Using cache found in /home/ubuntu/.cache/torch/hub/intel-isl_MiDaS_master Using cache found in /home/ubuntu/.cache/torch/hub/intel-isl_MiDaS_master /data/cf3dgs/CF-3DGS/trainer/trainer.py:491: DeprecationWarning: Since kornia 0.7.0 the depth_to_3d is deprecated in favor of depth_to_3d_v2. This function will be replaced with the depth_to_3d_v2 behaviour, where the that does not require the creation of a meshgrid. The return shape can be not backward compatible between these implementations. pts = depth_to_3d(depth_tensor[None, None], Number of points at initialisation : 272192 optimizing frame 000 Training progress: 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/data/cf3dgs/CF-3DGS/run_cf3dgs.py", line 47, in trainer.train_from_progressive() File "/data/cf3dgs/CF-3DGS/trainer/cf3dgs_trainer.py", line 447, in train_from_progressive gauss_params = self.init_two_view( File "/data/cf3dgs/CF-3DGS/trainer/cf3dgs_trainer.py", line 200, in init_two_view loss, rend_dict, psnr_train = self.train_step(self.gs_render, File "/data/cf3dgs/CF-3DGS/trainer/cf3dgs_trainer.py", line 121, in train_step image, viewspace_point_tensor, visibility_filter, radii = (render_pkg["image"], TypeError: 'NoneType' object is not subscriptable Training progress: 0%| | 0/1000 [00:00<?, ?it/s

xinyi0813 commented 2 months ago

EXM, I'm encountering this issue too, have you solved this problem?

jiangyijin commented 2 months ago

EXM, I'm encountering this issue too, have you solved this problem?EXM,我也遇到了这个问题,你解决了吗?

git clone --recursive git@github.com:NVlabs/CF-3DGS.git pip install -r requirements.txt

Please reconfigure the environment to ensure no errors occur. After reconfiguring the environment, I resolved the issue.

xinyi0813 commented 2 months ago

TY!!!

DuHao55 commented 1 month ago

EXM, I'm encountering this issue too, have you solved this problem? May I ask how you have solved all this? My environment seems to be all set up, and the lietorch test passes.