facebookresearch / SparseConvNet

Submanifold sparse convolutional networks
https://github.com/facebookresearch/SparseConvNet
Other
2.06k stars 334 forks source link

unet and fully_convolutional error #214

Closed Dibbya40 closed 3 years ago

Dibbya40 commented 3 years ago

Hello. Thank you so much for this work. I am facing an error when I run unet.py and fully_convolutional.py. It is shown below for unet.py:

Traceback (most recent call last): File "examples/3d_segmentation/unet.py", line 40, in trainIterator=data.train() File "/home/dsaha/SparseConvNet/examples/3d_segmentation/data.py", line 100, in train return torch.utils.data.DataLoader(d,batch_size=batchSize, collate_fn=merge, num_workers=10, shuffle=True) File "/home/dsaha/.local/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 266, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore File "/home/dsaha/.local/lib/python3.8/site-packages/torch/utils/data/sampler.py", line 103, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

Could you please help me?

Dibbya40 commented 3 years ago

It is solved. Thanks