Skip to content

Commit

Permalink
change audiopreprocessing chunk length default to 10 from 20
Browse files Browse the repository at this point in the history
  • Loading branch information
RaynorChavez committed Sep 17, 2024
1 parent 1643647 commit 357b335
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/marqo/s2_inference/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 8,
"supported_modalities": ["video", "audio", "language", "image"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},
'LanguageBind/Video_V1.5_FT_Audio_FT': {
"name": "LanguageBind/Video_V1.5_FT_Audio_FT",
Expand All @@ -2005,7 +2005,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 5,
"supported_modalities": ["video", "audio", "language"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},
'LanguageBind/Video_V1.5_FT_Image': {
"name": "LanguageBind/Video_V1.5_FT_Image",
Expand All @@ -2015,7 +2015,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 5,
"supported_modalities": ["video", "language", "image"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},
'LanguageBind/Audio_FT_Image': {
"name": "LanguageBind/Audio_FT_Image",
Expand All @@ -2025,7 +2025,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 5,
"supported_modalities": ["audio", "language", "image"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},
'LanguageBind/Audio_FT': {
"name": "LanguageBind/Audio_FT",
Expand All @@ -2035,7 +2035,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 2,
"supported_modalities": ["video", "language"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},
'LanguageBind/Video_V1.5_FT': {
"name": "LanguageBind/Video_V1.5_FT",
Expand All @@ -2045,7 +2045,7 @@ def _get_languagebind_properties() -> Dict:
"model_size": 2,
"supported_modalities": ["video", "language"],
"video_chunk_length": 20,
"audio_chunk_length": 20,
"audio_chunk_length": 10,
},

}
Expand Down
5 changes: 1 addition & 4 deletions src/marqo/tensor_search/models/index_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IndexSettings(StrictBaseModel):
splitOverlap=3,
)
audioPreprocessing: core.AudioPreProcessing = core.AudioPreProcessing(
splitLength=20,
splitLength=10,
splitOverlap=3,
)
vectorNumericType: core.VectorNumericType = core.VectorNumericType.Float
Expand All @@ -57,8 +57,6 @@ class IndexSettings(StrictBaseModel):
def validate_url_pointer_treatment(cls, values):
treat_as_images = values.get('treatUrlsAndPointersAsImages')
treat_as_media = values.get('treatUrlsAndPointersAsMedia')
print("treat_as_images", treat_as_images)
print("treat_as_media", treat_as_media)
if treat_as_images is None:
if treat_as_media is True:
treat_as_images = None #False
Expand Down Expand Up @@ -153,7 +151,6 @@ def to_marqo_index_request(self, index_name: str) -> MarqoIndexRequest:
updated_at=time.time(),
)
elif self.type == core.IndexType.Unstructured:
print("treatUrlsAndPointersAsImages", self.treatUrlsAndPointersAsImages)
if self.allFields is not None:
raise api_exceptions.InvalidArgError(
"allFields is not a valid parameter for unstructured indexes"
Expand Down

0 comments on commit 357b335

Please sign in to comment.