+ for s in range(0, nb_sequences):
+ for i in range(0, nb_images_per_sequences):
+ result.narrow(1, gap + s * (height + gap), height).narrow(2, gap + i * (width + gap), width).copy_(x[s][i])
+
+ result_numpy = result.cpu().byte().transpose(0, 2).transpose(0, 1).numpy()
+
+ return Image.fromarray(result_numpy, 'RGB')
+
+######################################################################
+
+from _ext import mylib