Traceback (most recent call last):


 "/usr/bin/bpython", line 9, in <module>

load_entry_point('bpython==0.15', 'console_scripts', 'bpython')()


 "/usr/lib/python2.7/dist-packages/bpython/curtsies.py", line 190, in main

exit_value = repl.mainloop()


 "/usr/lib/python2.7/dist-packages/bpython/curtsies.py", line 125, in mainloop

self.process_event_and_paint(e)


 "/usr/lib/python2.7/dist-packages/bpython/curtsies.py", line 99, in process_event_and_paint

array, cursor_pos = self.paint()


 "/usr/lib/python2.7/dist-packages/bpython/curtsiesfrontend/repl.py", line 1428, in paint

if self.matches_iter.completer else None)


 "/usr/lib/python2.7/dist-packages/bpython/curtsiesfrontend/replpainter.py", line 182, in paint_infobox

if matches else [])


 "/usr/lib/python2.7/dist-packages/bpython/curtsiesfrontend/replpainter.py", line 78, in matches_lines

for i in range(0, len(matches), words_wide)]


 "/usr/lib/python2.7/dist-packages/curtsies/formatstring.py", line 253, in join

for i, s in enumerate(iterable):


 "/usr/lib/python2.7/dist-packages/bpython/curtsiesfrontend/replpainter.py", line 77, in <genexpr>

for m in matches[i:i+words_wide])


 "/usr/lib/python2.7/dist-packages/curtsies/formatstring.py", line 617, in fmtstr

string = FmtStr.from_str(string)


 "/usr/lib/python2.7/dist-packages/curtsies/formatstring.py", line 169, in from_str

return FmtStr(Chunk(s))


 "/usr/lib/python2.7/dist-packages/curtsies/formatstring.py", line 70, in __init__

raise ValueError("unicode string required, got %r" % string)
ValueError: unicode string required, got 'pass
'

`Traceback (most recent call last):


 "train_full.py", line 96, in <module>

train(**vars(args))


 "train_full.py", line 21, in train

train_gen, validation_gen, img_shape = load_data(img_file, mask_file)


 "/home/lafi/Desktop/HairSegmentation/mobile-semantic-segmentation-master/data.py", line 60, in load_data

train_img_gen.fit(images)


 "/usr/local/lib/python2.7/dist-packages/keras/preprocessing/image.py", line 675, in fit

'Got array with shape: ' + str(x.shape))
ValueError: Input to `.fit()` should have rank 4. Got array with shape: (0,)
