rivoks

Results 3 comments of rivoks

I thinks it's because you didn't initialized the model Class. This should be working: ```python from groundingdino.util.inference import Model GROUNDING_DINO_CONFIG_PATH = "../groundingdino/config/GroundingDINO_SwinT_OGC.py" GROUNDING_DINO_CHECKPOINT_PATH = "../weights/groundingdino_swint_ogc.pth" grounding_dino_model = Model(model_config_path=GROUNDING_DINO_CONFIG_PATH, model_checkpoint_path=GROUNDING_DINO_CHECKPOINT_PATH) detections,...

For those having this problem, this solution works well for me: ```python from groundingdino.util.inference import predict boxes, scores, pred_classes = predict( model=model, image=image_tsr, caption=TEXT_PROMPT, box_threshold=BOX_THRESHOLD, text_threshold=TEXT_THRESHOLD, remove_combined=True #