Open pentateu opened 7 years ago
I just deleted multicore processing part of mpgen for reading images using multiple processors. It is running now but slowly. Just comment @mpeg as below. That's it to avoid this error.
def read_batches(batch_size):
Hi,
I'm getting this error while trying to execute "train.py", I had a look at the code. but it was not obvious to me the root cause. This happens the second time 'read_batches' is invoked.
B120 60.00% 60.00% loss: 1295.7512207 (digits: 1057.39453125, presence: 238.356689453) |X X XX X X X X X XX XXX X XX XX X| time for 60 batches 175.30300498 Process Process-1: Traceback (most recent call last): File "/Users/rafael/anaconda2/envs/tensorflow/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/Users/rafael/anaconda2/envs/tensorflow/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(*self._args, *self._kwargs) File "./train.py", line 92, in main for item in f(args, *kwargs): File "./train.py", line 122, in read_batches yield unzip(gen_vecs()) File "./train.py", line 72, in unzip xs, ys = zip(b) TypeError: zip() argument after * must be a sequence, not generator