Traceback (most recent call last):


 "train.py", line 141, in <module>

Train()


 "train.py", line 27, in __init__

self._train()


 "train.py", line 40, in _train

self._train_epoch(i_epoch)


 "train.py", line 82, in _train_epoch

self._display_visualizer_train(self._total_steps)


 "train.py", line 98, in _display_visualizer_train

self._tb_visualizer.display_current_results(self._model.get_current_visuals(), total_steps, is_train=True)


 "/home/xirui/XIr/GANimation-master/utils/tb_visualizer.py", line 27, in display_current_results

self._writer.add_image(sum_name, image_numpy, it)


 "/usr/local/lib/python2.7/dist-packages/tensorboardX/writer.py", line 412, in add_image

self.file_writer.add_summary(image(tag, img_tensor), global_step, walltime)


 "/usr/local/lib/python2.7/dist-packages/tensorboardX/summary.py", line 205, in image

image = make_image(tensor, rescale=rescale)


 "/usr/local/lib/python2.7/dist-packages/tensorboardX/summary.py", line 243, in make_image

image = Image.fromarray(tensor)


 "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2463, in fromarray

raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type

Traceback (most recent call last):


 "/opt/synapse/env/lib/python3.6/site-packages/synapse/http/server.py", line 77, in wrapped_request_handler

await h(self, request)


 "/opt/synapse/env/lib/python3.6/site-packages/synapse/http/server.py", line 326, in _async_render

callback_return = await callback_return
TypeError: string indices must be integers
