Open itsmeshreyans opened 6 years ago
@itsmeshreyans Have you solve it? I met the same question with you.
I got the same error when I was running process_data.py.
You need to make sure the dataset in the right directory.
---Original--- From: "WANG Gefei"notifications@github.com Date: Sun, Jun 2, 2019 22:48 PM To: "dyelax/Adversarial_Video_Generation"Adversarial_Video_Generation@noreply.github.com; Cc: "Subscribed"subscribed@noreply.github.com; Subject: Re: [dyelax/Adversarial_Video_Generation] Error with np.random.choice (#26)
I got the same error when I was running process_data.py.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@stillbetter Thank you! I got this problem solved, and I can run avg_runner.py without normally after processing data.
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