leftthomas / ImageDeblurring

A Keras implementation of image deblurring based on ICCV 2017 paper "Deep Generative Filter for motion deblurring"
82 stars 30 forks source link

how to fix #10

Closed longndmta closed 6 years ago

longndmta commented 6 years ago

('epoch: ', 1, '/', 10) ('batches: ', 302) Traceback (most recent call last): File "main.py", line 104, in train(batch_size=2, epoch_num=10) File "main.py", line 51, in train d_loss = d.train_on_batch(x, y) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/engine/training.py", line 1843, in train_on_batch check_batch_axis=True) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/engine/training.py", line 1430, in _standardize_user_data exception_prefix='target') File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/keras/engine/training.py", line 70, in _standardize_input_data data = [np.expand_dims(x, 1) if x is not None and x.ndim == 1 else x for x in data] AttributeError: 'int' object has no attribute 'ndim'

thank you

leftthomas commented 6 years ago

@dlongmta Firstly, make sure you’re using python 3, secondly, to check the image datasets on the right diroctory.