-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello, I am very interested in your work. While replicating your code, I encountered an issue, as shown in the attached image. During training, the dimensions of valid_idxs do not match with the dimensions of the mean label mu_label. The mu_label is generated in the pseudo-label generation part of the code. This issue has been troubling me for quite some time, and I would appreciate your guidance on this matter.

Traceback (most recent call last):
File "tools/train.py", line 351, in
main()
File "tools/train.py", line 342, in main
train(epoch, model, optimizer, scheduler, scaler, train_loader, cfg, logger, writer)
File "tools/train.py", line 64, in train
for i, batch in enumerate(train_loader, start=1):
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 681, in next
data = self._next_data()
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1376, in _next_data
return self._process_data(data)
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1402, in _process_data
data.reraise()
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/_utils.py", line 461, in reraise
raise exception
IndexError: Caught IndexError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/WANGboyue/wbw/anaconda3/envs/gapro_backup/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/WANGboyue/wbw/GaPro-master/ISBNet/isbnet/data/custom.py", line 174, in getitem
self.transform_train(xyz, rgb, semantic_label, instance_label, prob_label, mu_label, var_label, spp)
File "/WANGboyue/wbw/GaPro-master/ISBNet/isbnet/data/custom.py", line 148, in transform_train
mu_label = mu_label[valid_idxs]
IndexError: boolean index did not match indexed array along dimension 0; dimension is 1199 but corresponding boolean dimension is 127533