Skip to content

Commit 6610eb6

Browse files
committed
forcing type
1 parent fb70ba6 commit 6610eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ConvertLabels.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
if (len(sys.argv) < 5):
2727
print 'saving result to', str(sys.argv[3])
2828

29-
nrrd.write(str(sys.argv[3]), tempd, options=option)
29+
nrrd.write(str(sys.argv[3]), np.uint8(tempd), options=option)
3030
else:
3131
print 'saving result to', str(sys.argv[4])
3232

33-
nrrd.write(str(sys.argv[4]), tempd, options=option)
33+
nrrd.write(str(sys.argv[4]), np.uint8(tempd), options=option)
3434

3535
print 'Done.'

0 commit comments

Comments
 (0)