Keras-FCN icon indicating copy to clipboard operation
Keras-FCN copied to clipboard

raise NotImplementedError

Open xvlvzhu opened this issue 7 years ago • 7 comments

I meet the error in epoch 1 with VOC2012

lr: 0.010000 Epoch 1/250 Traceback (most recent call last): File "D:\Python\Python36\lib\site-packages\keras\utils\data_utils.py", line 513, in get inputs = self.queue.get(block=True).get() File "D:\Python\Python36\lib\multiprocessing\pool.py", line 644, in get raise self._value File "D:\Python\Python36\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "D:\Python\Python36\lib\site-packages\keras\utils\data_utils.py", line 379, in get_index return ds[i] File "D:\Python\Python36\lib\site-packages\keras\preprocessing\image.py", line 759, in getitem return self._get_batches_of_transformed_samples(index_array) File "D:\Python\Python36\lib\site-packages\keras\preprocessing\image.py", line 805, in _get_batches_of_transformed_samples raise NotImplementedError NotImplementedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:/demo/pycharmWorksapce/Keras-FCN-master/train.py", line 234, in label_suffix=label_suffix, ignore_label=ignore_label, label_cval=label_cval) File "D:/demo/pycharmWorksapce/Keras-FCN-master/train.py", line 163, in train class_weight=class_weight File "D:\Python\Python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper return func(*args, **kwargs) File "D:\Python\Python36\lib\site-packages\keras\engine\training.py", line 2046, in fit_generator generator_output = next(output_generator) File "D:\Python\Python36\lib\site-packages\keras\utils\data_utils.py", line 518, in get raise StopIteration(e) StopIteration

Process finished with exit code 1

xvlvzhu avatar Nov 07 '17 13:11 xvlvzhu

I meet the same error . Have you already solved it?

xiaofengqing avatar Nov 07 '17 13:11 xiaofengqing

@xiaofengqing not yet

xvlvzhu avatar Nov 07 '17 14:11 xvlvzhu

@zxl1994 @xiaofengqing Have you already solved this problem? I have the same error with you. during the steps:

1.# Generate pretrained weights python transfer_FCN.py

2.# Run training python train.py

3.# Evaluate the performance of the network python evaluate.py

I failed run python transfer_FCN.py , there is a value error"axes don't match array." Do you have this error?

milumilule2 avatar Nov 09 '17 06:11 milumilule2

When i Downgraded keras to 2.0.8,the problem is solved. @milumilule2 @zxl1994

xiaofengqing avatar Nov 09 '17 09:11 xiaofengqing

@milumilule2 I run transfer_FCN.py successfully, I did not meet this error.

zwlshine avatar Nov 09 '17 10:11 zwlshine

@xiaofengqing yes, my keras version is 2.0.8, but it doesn't work. It still occurs the same issue. so what's your python and tensorflow version? my python version is 2.7, is it too old?

milumilule2 avatar Nov 09 '17 12:11 milumilule2

@milumilule2 TensorFlow 1.3 python3.4.3

xiaofengqing avatar Nov 10 '17 01:11 xiaofengqing