qhduan / just_another_seq2seq

Just another seq2seq repo
329 stars 97 forks source link

线程错误 #25

Open NexusLee opened 5 years ago

NexusLee commented 5 years ago

python3 train.py

2019-01-23 09:16:28.072380: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not comp iled to use: AVX2 FMA epoch 1 loss=1.902081 lr=0.001000: 92%|#######################################################################9 | 119/129 [00:47<00:04, 2.48it/s] Exception in thread <generator object batch_flow_bucket at 0x7fd488384eb8>: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "../threadedgenerator.py", line 43, in _run for value in self._iterator: File "../data_utils.py", line 197, in batch_flow_bucket data_batch = random.sample(ind_data[choice_ind], batch_size) File "/usr/lib/python3.5/random.py", line 315, in sample raise ValueError("Sample larger than population") ValueError: Sample larger than population

epoch 1 loss=1.866029 lr=0.001000: 100%|##############################################################################| 129/129 [00:51<00:00, 2.54it/s] epoch 2 loss=1.381537 lr=0.001000: 16%|############2 | 20/129 [00:07<00:44, 2.44it/s] Traceback (most recent call last): File "train.py", line 163, in main() File "train.py", line 159, in main test(json.load(open('params.json'))) File "train.py", line 74, in test x, xl, y, yl = next(flow) File "../threadedgenerator.py", line 75, in next raise StopIteration() StopIteration