Traceback (most recent call last):


 "/home/user01/anaconda2/envs/tensorflow/lib/python2.7/threading.py", line 801, in __bootstrap_inner

self.run()


 "/home/user01/anaconda2/envs/tensorflow/lib/python2.7/threading.py", line 754, in run

self.__target(*self.__args, **self.__kwargs)


 "/home/user01/SRGAN-master/tensorlayer/prepro.py", line 87, in apply_fn

results[i] = fn(data, **kwargs)


 "/home/user01/SRGAN-master/utils.py", line 17, in crop_sub_imgs_fn

x = crop(x, wrg=384, hrg=384, is_random=is_random)


 "/home/user01/SRGAN-master/tensorlayer/prepro.py", line 232, in crop

h, w = x.shape[row_index], x.shape[col_index]
AttributeError: 'NoneType' object has no attribute 'shape'

> Traceback (most recent call last):


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 23, in do_import

succeeded = activate_func()


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_console_utils.py", line 199, in <lambda>

"matplotlib": lambda: activate_matplotlib(self.enableGui),


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 96, in activate_matplotlib

gui, backend = find_gui_and_backend()


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 47, in find_gui_and_backend

backend = matplotlib.rcParams['backend']


 "C:\Users\dorp\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 892, in __getitem__

plt.switch_backend(rcsetup._auto_backend_sentinel)
AttributeError: module 'matplotlib.pyplot' has no attribute 'switch_backend'
