update samples from Release-108 as a part of 1.35.0 SDK stable release

This commit is contained in:
amlrelsa-ms
2021-10-11 15:36:08 +00:00
parent e2dddfde85
commit f9892966fd
57 changed files with 28923 additions and 192 deletions

View File

@@ -4,15 +4,15 @@ import sys
def convert(imgf, labelf, outf, n):
f = open(imgf, "rb")
l = open(labelf, "rb")
temp = open(labelf, "rb")
o = open(outf, "w")
f.read(16)
l.read(8)
temp.read(8)
images = []
for i in range(n):
image = [ord(l.read(1))]
image = [ord(temp.read(1))]
for j in range(28 * 28):
image.append(ord(f.read(1)))
images.append(image)
@@ -21,7 +21,7 @@ def convert(imgf, labelf, outf, n):
o.write(",".join(str(pix) for pix in image) + "\n")
f.close()
o.close()
l.close()
temp.close()
mounted_input_path = sys.argv[1]