Open karensylee opened 1 year ago
C:\zipnerf-pytorch\internal\datasets.py:567: RuntimeWarning: invalid value encountered in matmul
Maybe something wrong with your data.
Hi All, It seems Windows PC was used for training in this case. I'm using Windows PC too and faced similar error. (ForkingPickler(file, protocol).dump(obj) OSError: [Errno 22] Invalid argument)
I searched using google and it seems that it related to pytorch issue, only for Windows. https://hashicco.hatenablog.com/entry/2023/03/07/224638 https://github.com/pytorch/pytorch/issues/12831
To avoid error, I modified train.py a little.
dataloader = torch.utils.data.DataLoader(np.arange(len(dataset)),
num_workers=0,#8,
shuffle=True,
batch_size=1,
collate_fn=dataset.collate_fn,
persistent_workers=False,#True,
)
test_dataloader = torch.utils.data.DataLoader(np.arange(len(test_dataset)),
num_workers=0,#4,
shuffle=False,
batch_size=1,
persistent_workers=False,#True,
collate_fn=test_dataset.collate_fn,
)
Like above, set num_workers to 0, and parsistent_workers to False. After that, I can run training on Windows PC now.
I hope this information helps you...
I'm trying to train on the bicycle dataset. I ran into issues similar to those described in these posts: https://github.com/SuLvXiangXin/zipnerf-pytorch/issues/49#issuecomment-1615760166 and https://github.com/SuLvXiangXin/zipnerf-pytorch/issues/27#issuecomment-1614872248
I applied the suggested fixes but now I have a new error: "_pickle.UnpicklingError: pickle data was truncated"