from swarms.models.kosmos2 import Kosmos2, Detections
from PIL import Image


model = Kosmos2.initialize()

image = Image.open("images/swarms.jpg")

detections = model(image)
print(detections)