Skip to content

Commit 1c9d9be

Browse files
committed
Special cast to SparseModelDescription
1 parent 7f6575d commit 1c9d9be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastembed/common/model_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def download_model(
407407
try:
408408
return cls.retrieve_model_gcs(
409409
model.model,
410-
url_source,
410+
str(url_source),
411411
str(cache_dir),
412412
local_files_only=local_files_only,
413413
)

fastembed/late_interaction_multimodal/colpali.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _post_process_onnx_image_output(
140140
Iterable[NumpyArray]: Post-processed output as NumPy arrays.
141141
"""
142142
return output.model_output.reshape(
143-
output.model_output.shape[0], -1, self.model_description.dim
143+
output.model_output.shape[0], -1, int(self.model_description.dim)
144144
).astype(np.float32)
145145

146146
def _post_process_onnx_text_output(

0 commit comments

Comments
 (0)