Quick start

Send your first image to the cloud in 2 minutes

Use the logger direcly in your inference code like the following example:

import cv2
from tqdm import tqdm

from babylog import Babylog, VisionModelType, InferenceDevice


bl = Babylog("../resources/babylog.config.yaml", save_cloud=True)
img = cv2.imread("../resources/panda.jpg")


for i in tqdm(range(10)):
    bl.log(
        image=img,
        model_type=VisionModelType.CLASSIFICATION,
        model_name="resnet_50_finetuned_pandas",
        model_version="1.0.0",
        latency=10,
        inference_device=InferenceDevice.CPU,
        classification={"panda": 0.87, "cat": 0.13},
    )

bl.shutdown()

It's that simple! With babylog, you can start streaming image and video data from edge devices to the cloud in just a few lines of code.

Last updated