📸
babylog
  • 👋Welcome to babylog
  • Python
    • 🔄Installation & requirements
    • âš¡Quick start
    • 📖Reference
    • 💬Changelog
  • Examples
    • 🎥A YOLOv8 guide to logging computer vision data with Babylog
Powered by GitBook
On this page
  1. Python

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.

PreviousInstallation & requirementsNextReference

Last updated 2 years ago

âš¡