parent
537f81f932
commit
a552a98373
@ -1,10 +0,0 @@
|
|||||||
from swarms.models.kosmos2 import Kosmos2
|
|
||||||
from PIL import Image
|
|
||||||
|
|
||||||
|
|
||||||
model = Kosmos2.initialize()
|
|
||||||
|
|
||||||
image = Image.open("images/swarms.jpg")
|
|
||||||
|
|
||||||
detections = model(image)
|
|
||||||
print(detections)
|
|
@ -1,11 +0,0 @@
|
|||||||
from swarms.models.kosmos_two import Kosmos
|
|
||||||
|
|
||||||
# Initialize Kosmos
|
|
||||||
kosmos = Kosmos()
|
|
||||||
|
|
||||||
# Perform multimodal grounding
|
|
||||||
out = kosmos.multimodal_grounding(
|
|
||||||
"Find the red apple in the image.", "images/swarms.jpeg"
|
|
||||||
)
|
|
||||||
|
|
||||||
print(out)
|
|
Loading…
Reference in new issue