Skip to content

Commit

Permalink
Merge pull request #272 from roboflow/fix/fix_model_preprocessing
Browse files Browse the repository at this point in the history
Make yolo-world infer BGR
  • Loading branch information
PawelPeczek-Roboflow authored Feb 16, 2024
2 parents e6ecbb1 + 621bf27 commit 2e49f85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inference/core/utils/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ def get_string_list_hash(text: list) -> str:
Returns:
str: The hash of the list of strings.
"""
text_string = ", ".join(text)
text_string = ", ".join([f"{idx}:{t}" for idx, t in enumerate(text)])
text_hash = hashlib.md5(text_string.encode("utf-8")).hexdigest()
return text_hash
2 changes: 1 addition & 1 deletion inference/core/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.9.11"
__version__ = "0.9.12"


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion inference/models/yolo_world/yolo_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def preproc_image(self, image: Any):
np.array: The preprocessed image.
"""
np_image = load_image_rgb(image)
return np_image
return np_image[:, :, ::-1]

def infer_from_request(
self,
Expand Down

0 comments on commit 2e49f85

Please sign in to comment.