Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/bert uncased #319

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion groundingdino/config/GroundingDINO_SwinT_OGC.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
embed_init_tgt = True
dn_labelbook_size = 2000
max_text_len = 256
text_encoder_type = "bert-base-uncased"
text_encoder_type = "google-bert/bert-base-uncased"
use_text_enhancer = True
use_fusion_layer = True
use_checkpoint = True
Expand Down
2 changes: 1 addition & 1 deletion groundingdino/util/get_tokenlizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_tokenlizer(text_encoder_type):


def get_pretrained_language_model(text_encoder_type):
if text_encoder_type == "bert-base-uncased" or (os.path.isdir(text_encoder_type) and os.path.exists(text_encoder_type)):
if text_encoder_type == "google-bert/bert-base-uncased" or (os.path.isdir(text_encoder_type) and os.path.exists(text_encoder_type)):
return BertModel.from_pretrained(text_encoder_type)
if text_encoder_type == "roberta-base":
return RobertaModel.from_pretrained(text_encoder_type)
Expand Down