jmiller656 / EDSR-Tensorflow

Tensorflow implementation of Enhanced Deep Residual Networks for Single Image Super-Resolution
MIT License
330 stars 107 forks source link

ValueError: setting an array element with a sequence. #17

Closed PrathamSoni closed 6 years ago

PrathamSoni commented 6 years ago

persistent error when training due to writing summaries

File "train.py", line 18, in <module>
    network.train(args.iterations,args.savedir)
  File "/home/psoni/EDSR-Tensorflow/model.py", line 222, in train
    t_summary = sess.run(merged,test_feed)
  File "/home/psoni/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run
    run_metadata_ptr)
  File "/home/psoni/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1093, in _run
    np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
  File "/home/psoni/anaconda2/lib/python2.7/site-packages/numpy/core/numeric.py", line 531, in asarray
    return array(a, dtype, copy=False, order=order)
jmiller656 commented 6 years ago

Having trouble reproducing this error, could you give me more details?

PrathamSoni commented 6 years ago

I'm attempting to train on gpu and I keep having this value error related to the summary writing for the testing batch. It often errors out during the 1st epoch but some times it gets deeper in before erroring out.

PrathamSoni commented 6 years ago

It seems as though a sample size larger than 100 is needed. It doesn't seem to work if the sample size is too small.