Update docker_test.py

saw a little mistake that was effecting docker run :)
pull/360/head
Nandini Garg 2024-09-27 17:20:45 +05:30 committed by GitHub
parent 856dde20ae
commit 1e61cf1e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ from groundingdino.util.inference import load_model, load_image, predict, annota
import torch
import cv2
model = load_model("groundingdino/config/GroundingDINO_SwinT_OGC.pyy", "weights/groundingdino_swint_ogc.pth")
model = load_model("groundingdino/config/GroundingDINO_SwinT_OGC.py", "weights/groundingdino_swint_ogc.pth")
model = model.to('cuda:0')
print(torch.cuda.is_available())
print('DONE!')
print('DONE!')