KPConv-PyTorch
KPConv-PyTorch copied to clipboard
Errors in the original data sets
Hello Mr.Thomas. Thank you for your wonderful work. When I run my own data set, I get an error.
(Error Description) ________________________________________________________ RuntimeError: Caught RuntimeError in DataLoader worker process 0. RuntimeError: cannot perform reduction function argmin on a tensor with no elements because the operation does not have an identity ________________________________________________________
If you know the cause of these errors, please let me know. I apologize for my poor English.
It seems that there is an empty array somewhere. You can investigate it by setting the number of worker to 0 in the train_XXXX.py script. The bug probably appears in the __getitem__
function of your dataset class
Hellow Mr.Thomas. Thanks for your help. I found an empty array in tensor. Please let me know if there is any cause for the empty array in tensor and what to do about it.
(below is the error msg)
________________________________________________________
Initialize workers
tensor([], dtype=torch.float64)
tensor([], dtype=torch.float64)
Traceback (most recent call last):
File "test_kyoukyaku.py", line 219, in
The min_potentials are defined here: https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/e600c1667d085aeb5cf89d8dbe5a97aad4270d88/datasets/S3DIS.py#L182-L191
If self.min_potentials
is empty, it means that self.pot_trees
is too.
You probably modified the function self.load_subsampled_clouds()
where self.pot_trees
should be defined:
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/e600c1667d085aeb5cf89d8dbe5a97aad4270d88/datasets/S3DIS.py#L777-L821