Skip to content

Instantly share code, notes, and snippets.

igiloh /
Created December 31, 2017 12:02
Loading images without SFrameBuilder
import the necessary packages
from PIL import Image
import turicreate as tc
import progressbar
import glob
import os
def pil_to_tc(pilImage):
# grab the PIL image dimensions, convert the data into a byte
# array, and then build the turicreate image