foodDetectionDemo / detector.py
cheng
intergrate with clip
82e8494
raw
history blame
203 Bytes
from clip import get_token_from_clip
from grounding import run_grounding
def detect(image):
token = get_token_from_clip(image)
predict_image = run_grounding(image,token)
return predict_image