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.