mirror of
https://github.com/Vision-CAIR/MiniGPT-4.git
synced 2025-04-05 02:20:47 +00:00
test
This commit is contained in:
parent
2d914f561d
commit
ccf3db9207
@ -35,7 +35,7 @@ class GroundingModule(nn.Module):
|
||||
groundingdino_config_file = "./groundingdino/config/GroundingDINO_SwinT_OGC.py"
|
||||
|
||||
self.grounding_model = load_groundingdino_model(groundingdino_config_file, groundingdino_checkpoint).to(device)
|
||||
self.sam_predictor = SamPredictor(build_sam(checkpoint=sam_checkpoint)).to(device)
|
||||
self.sam_predictor = SamPredictor(build_sam(checkpoint=sam_checkpoint).to(device))
|
||||
|
||||
def prompt2mask(self, original_image, prompt, box_threshold=0.25, text_threshold=0.25, num_boxes=10):
|
||||
def image_transform_grounding(init_image):
|
||||
|
Loading…
Reference in New Issue
Block a user