PyTorch CUDA and GroundingDINO Setup

Job ID: 38260569

Budget: €8 – €30 EUR

I require assistance with installing and setting up a GroundingDINO project on my Windows PC. I freely confess that I have no previous knowledge or experience working with Python and PyTorch but am willing to learn with the right guidance.

The ideal candidate for this job should:

- Exhibit expertise in Python and PyTorch
- Have solid experience with CUDA programming and its integration with PyTorch
- Be comfortable with setting up software in a Windows environment
- Have successfully executed similar projects in the past

The main goal is to get the GroundingDINO project up and running on my system, with some explanation of how things work along the way. Your assistance with this project should enable me to better understand how each of these components interact with each other.

Remember, I am a complete novice in this field so patience is highly valued. Together let's make learning Python, PyTorch and GroundingDINO seem less daunting!




Command: pip install -e .
see (Image1)

Sample python code:
from groundingdino.util.inference import load_model, load_image, predict, annotate
import cv2

model = load_model("groundingdino/config/GroundingDINO_SwinT_OGC.py", "weights/groundingdino_swint_ogc.pth")
IMAGE_PATH = "weights/dog-3.jpeg"
TEXT_PROMPT = "chair . person . dog ."
BOX_TRESHOLD = 0.35
TEXT_TRESHOLD = 0.25

image_source, image = load_image(IMAGE_PATH)

boxes, logits, phrases = predict(
model=model,
image=image,
caption=TEXT_PROMPT,
box_threshold=BOX_TRESHOLD,
text_threshold=TEXT_TRESHOLD
)

annotated_frame = annotate(image_source=image_source, boxes=boxes, logits=logits, phrases=phrases)
cv2.imwrite("annotated_image.jpg", annotated_frame)


error Image2
Related categories: C Programming Python Linux Software Architecture CUDA