Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
healthonrails committed May 26, 2023
1 parent bde5ef7 commit 31dfad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang_sam/lang_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def build_sam(self, sam_type):

def build_groundingdino(self):
ckpt_repo_id = "ShilongLiu/GroundingDINO"
ckpt_filenmae = "groundingdino_swinb_cogcoor.pth"
ckpt_filename = "groundingdino_swinb_cogcoor.pth"
ckpt_config_filename = "GroundingDINO_SwinB.cfg.py"
self.groundingdino = load_model_hf(ckpt_repo_id, ckpt_filenmae, ckpt_config_filename)
self.groundingdino = load_model_hf(ckpt_repo_id, ckpt_filename, ckpt_config_filename)

def predict_dino(self, image_pil, text_prompt, box_threshold, text_threshold):
image_trans = transform_image(image_pil)
Expand Down

0 comments on commit 31dfad4

Please sign in to comment.