Skip to content

Commit

Permalink
Bump version and add ability to guide segmentation with mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkalskiP committed Dec 1, 2023
1 parent faaa22e commit 392f424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions maestro/markers/sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def generate(
input_points=[[input_points]],
return_tensors="pt"
).to(self.device)
del inputs["pixel_values"]
outputs = self.model(image_embeddings=image_embeddings, **inputs)
mask = self.processor.image_processor.post_process_masks(
masks=outputs.pred_masks.cpu().detach(),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "maestro"
version = "0.1.0"
version = "0.1.1rc1"
description = "Visual Prompting for Large Multimodal Models (LMMs)"
authors = ["Piotr Skalski <piotr.skalski92@gmail.com>"]
maintainers = ["Piotr Skalski <piotr.skalski92@gmail.com>"]
Expand Down

0 comments on commit 392f424

Please sign in to comment.