aurora95 / Keras-FCN

Keras-tensorflow implementation of Fully Convolutional Networks for Semantic Segmentation(Unfinished)
MIT License
650 stars 268 forks source link

raise NotImplementedError #48

Open xvlvzhu opened 7 years ago

xvlvzhu commented 7 years ago

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

xiaofengqing commented 7 years ago

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

xvlvzhu commented 7 years ago

@xiaofengqing not yet

milumilule2 commented 7 years ago

@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?

xiaofengqing commented 7 years ago

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

zwlshine commented 7 years ago

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

milumilule2 commented 7 years ago

@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?

xiaofengqing commented 7 years ago

@milumilule2 TensorFlow 1.3 python3.4.3