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

Your program doesn't work. #2

Open
GuYunxian opened this issue Jan 18, 2018 · 5 comments
Open

Your program doesn't work. #2

GuYunxian opened this issue Jan 18, 2018 · 5 comments

Comments

@GuYunxian
Copy link

made a mistake when I ran the train.py.

RuntimeError: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in PyTorch

@lopuhin
Copy link
Owner

lopuhin commented Jan 18, 2018

@GuYunxian yes, it's more of a code dump than a supported project, although it used to work. Could you share the full traceback?

@GuYunxian
Copy link
Author

Traceback (most recent call last):
File "./train.py", line 704, in
main()
File "./train.py", line 699, in main
model_path=args.model_path
File "./train.py", line 172, in train
no_mp=no_mp)
File "./train.py", line 308, in train_on_images
self._train_on_feeds(gen_batch, n_batches, no_mp=no_mp)
File "./train.py", line 342, in train_on_feeds
for i, (x, y, dist_y) in enumerate(map
(gen_batch, range(n_batches))):
File "/home/huster/fancy/Dstl/kaggle-dstl-master/utils.py", line 282, in imap_fixed_output_buffer
yield future.result()
File "/usr/lib/python3.5/concurrent/futures/_base.py", line 405, in result
return self.__get_result()
File "/usr/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "./train.py", line 306, in gen_batch
torch.from_numpy(np.array(dist_outputs)))
RuntimeError: the given numpy array has zero-sized dimensions. Zero-sized dimensions are not supported in PyTorch

I want to run down the results and try it. I wonder if you have an executable program.

@lopuhin
Copy link
Owner

lopuhin commented Jan 18, 2018

No, I don't have anything more executable. This likely result of missing input data, but I'm not 100% sure - sorry, I didn't put many checks in the code.

@GuYunxian
Copy link
Author

This error is due to an empty set of parameters.
The parameter dist_output has no input, but you didn't specify how the parameters were set, I am using the default values。

@HalfLemon
Copy link

Hi, I have the same problem. Do you solve this problem?

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

3 participants