Core training & inference utilities
This library is intended for use within Google Colab. An example involving the loading of a dataset can be found here:
Install the library, create a new CoreAI Environment within Google Colab, and activate the environment. This will display a blue activate button, click the link to activate on coreai.dev, and then close the window when you're done.
!pip install -i https://pypi.coreai.dev coreai
from coreai import *
environment = CoreAI.create_environment(EnvironmentType.GOOGLE_COLAB, 0.5)
environment.activate()
import random
import urllib
from matplotlib import pyplot as plt
# Load the images from the coreai
dataset = environment.datasets.sample.dragons
dataset.select(1)
# Select 10 random images from the dataset
images = [dataset.select(random.randrange(0,len(dataset))) for x in range(0,10)]
# Plot the images
fig, axs = plt.subplots(1, len(images), figsize=(20, 20))
for i, image in enumerate(images):
axs[i].imshow(image)
axs[i].axis('off')