buf.append(saveTestData("channel_01.dat", width, height, 2, batch))
buf.append(saveTestData("channel_02.dat", width, height, 4, batch))
-out = ''
+out = b''
for b in range(0, batch):
for h in range(0,height):
for w in range(0,width):
buf.append(saveTestData("width_200.dat", width[1], height, ch, batch))
buf.append(saveTestData("width_300.dat", width[2], height, ch, batch))
-out = ''
+out = b''
for b in range(0, batch):
for h in range(0,height):
buf.append(saveTestData("batch_2.dat", width, height, ch, batch[1]))
buf.append(saveTestData("batch_3.dat", width, height, ch, batch[2]))
-out = ''
+out = b''
for n in range(0,3):
for b in range(0, batch[n]):
for h in range(0,height):
return frame.tostring(), out0, out1
filename = "video_4x4xBGRx.xraw"
-f = open(filename, "w")
+f = open(filename, "wb")
out0 = arr.array('f',[0]*64)
out1 = arr.array('f',[0]*64)