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):


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/ptk2/shell.py", line 164, in _push

code = self.execer.compile(src, mode="single", glbs=self.ctx, locs=None)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/execer.py", line 132, in compile

tree = self.parse(input, ctx, mode=mode, filename=filename, transform=transform)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/execer.py", line 93, in parse

tree, input = self._parse_ctx_free(input, mode=mode, filename=filename)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/execer.py", line 214, in _parse_ctx_free

debug_level=(self.debug_level > 2),


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/parsers/base.py", line 520, in parse

tree = self.parser.parse(input=s, lexer=self.lexer, debug=debug_level)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/ply/ply/yacc.py", line 331, in parse

return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/ply/ply/yacc.py", line 1118, in parseopt_notrack

p.callable(pslice)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xonsh/parsers/base.py", line 3232, in p_subproc_arg_part

p[0] = ast.Str(s=p1.value, lineno=p1.lineno, col_offset=p1.lexpos)
AttributeError: 'str' object has no attribute 'value'
