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

Error with np.random.choice #26

Open
itsmeshreyans opened this issue May 30, 2018 · 4 comments
Open

Error with np.random.choice #26

itsmeshreyans opened this issue May 30, 2018 · 4 comments

Comments

@itsmeshreyans
Copy link

Traceback (most recent call last):
File "avg_runner.py", line 185, in
main()
File "avg_runner.py", line 181, in main
runner.train()
File "avg_runner.py", line 68, in train
batch = get_train_batch()
File "/Users/shreyans/Desktop/Hamburg_Assignments/Neural networks/version 2/Adversarial_Video_Generation/Code/utils.py", line 126, in get_train_batch
path = c.TRAIN_DIR_CLIPS + str(np.random.choice(c.NUM_CLIPS)) + '.npz'
File "mtrand.pyx", line 1120, in mtrand.RandomState.choice
ValueError: a must be greater than 0

@smilefenglei
Copy link

@itsmeshreyans Have you solve it? I met the same question with you.

@gefeiwang
Copy link

I got the same error when I was running process_data.py.

@stillbetter
Copy link

stillbetter commented Jun 2, 2019 via email

@gefeiwang
Copy link

@stillbetter Thank you! I got this problem solved, and I can run avg_runner.py without normally after processing data.

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

4 participants