You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i got one error. I am using 17 512*512 images and masks. I ran it with a batch size of 10, but it stopped with an error that the tensor size was wrong. I would like to know how to solve
The text was updated successfully, but these errors were encountered:
DatasetLLFF: 17 images with shape [512, 512]
DatasetLLFF: auto-centering at [-0.41304994 2.6057422 8.97906 ]
DatasetLLFF: 17 images with shape [512, 512]
DatasetLLFF: auto-centering at [-0.41304994 2.6057422 8.97906 ]
Encoder output: 32 dims
Traceback (most recent call last):
File "train.py", line 594, in
geometry, mat = optimize_mesh(glctx, geometry, mat, lgt, dataset_train, dataset_validate,
File "train.py", line 381, in optimize_mesh
for it, target in enumerate(dataloader_train):
File "/home/user/torch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/home/user/torch/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 561, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/user/torch/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch
return self.collate_fn(data)
File "/home/user/torchtest/nvdiffrec/dataset/dataset.py", line 31, in collate
'img' : torch.cat(list([item['img'] for item in batch]), dim=0)
RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 4 but got size 5 for tensor number 1 in the list.`
i got one error. I am using 17 512*512 images and masks. I ran it with a batch size of 10, but it stopped with an error that the tensor size was wrong. I would like to know how to solve
The text was updated successfully, but these errors were encountered: