Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train Error #47

Open
makaay2077 opened this issue Dec 27, 2022 · 0 comments
Open

Train Error #47

makaay2077 opened this issue Dec 27, 2022 · 0 comments

Comments

@makaay2077
Copy link

When I start the train process, I get this error. Can you help with the solution?

Create filelist...done, 0 train files, 2 test files
Creating the network...Model with dropout
Done
Create the datasets...Done
Create optimizer...Done

Epoch 0: 0%| | 0/1000 [00:00<?, ?it/s]
Epoch 0: 0%| | 0/1000 [00:01<?, ?it/s]
Traceback (most recent call last):
File "npm3d_seg.py", line 383, in
main()
File "npm3d_seg.py", line 295, in main
for pts, features, seg in t:
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\tqdm\std.py", line 1195, in iter
for obj in iterable:
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data\dataloader.py", line 435, in next
data = self._next_data()
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data\dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data\dataloader.py", line 1111, in _process_data
data.reraise()
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch_utils.py", line 428, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data_utils\worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "D:\Çağdaş\Nota_Bulutu_Python\npm3d_seg.py", line 99, in getitem
index = random.randint(0, len(self.filelist)-1)
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\random.py", line 221, in randint
return self.randrange(a, b+1)
File "C:\Users\akillisehir1.conda\envs\bimtas\lib\random.py", line 199, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (0,0, 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant