Skip to content

Commit

Permalink
Rad Dino changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roopa G committed Dec 9, 2024
1 parent 317261a commit 3f79d30
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ inputs:
- mask-generation
- video-multi-object-tracking
- visual-question-answering
- embeddings
description: A Hugging face task on which model was trained on. A required parameter for transformers MLflow flavor. Can be provided as input here or in model_download_metadata JSON file.
optional: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ inputs:
- mask-generation
- video-multi-object-tracking
- visual-question-answering
- embeddings
optional: true
type: string

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_mlflow_convertor(model_framework, model_dir, output_dir, temp_dir, trans
return CLIPMLflowConvertorFactory.create_mlflow_convertor(
model_dir, output_dir, temp_dir, translate_params
)
elif (task == PyFuncSupportedTasks.EMBEDDINGS.value) and model_id.startswith(ModelFamilyPrefixes.DINOV2.value):
elif (task == PyFuncSupportedTasks.EMBEDDINGS.value) and (model_id.startswith(ModelFamilyPrefixes.DINOV2.value) or model_id.startswith(ModelFamilyPrefixes.RADDINO.value)):
return DinoV2MLflowConvertorFactory.create_mlflow_convertor(
model_dir, output_dir, temp_dir, translate_params
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ class ModelFamilyPrefixes(_CustomEnum):

# DinoV2 model family.
DINOV2 = "facebook/dinov2"

RADDINO = "microsoft/rad-dino"

0 comments on commit 3f79d30

Please sign in to comment.