Esempio n. 1
0
        private TFTensor ReadTensorFromFile(string filePath)
        {
            var bmp = ImageUtil.BitmapFromFile(filePath);

            return(ImageUtil.TensorFromBitmap(bmp, this.ImageDims));
        }
Esempio n. 2
0
        private TFTensor ReadTensorFromBytes(byte[] image)
        {
            var bmp = ImageUtil.BitmapFromBytes(image);

            return(ImageUtil.TensorFromBitmap(bmp, this.ImageDims));
        }