Main
agentsllmsvector-databaselancedbgptopenaiAImultimodal-aimachine-learningembeddingsfine-tuningexamplesdeep-learninggpt-4-visionllama-indexsearch-within-images-with-sam-and-clipragmultimodallangchainlancedb-recipes
Export
🔍 Search Within and Image
Leveraging the SAM and CLIP models, we employ natural language queries to seamlessly segment, crop, and pinpoint the nearest match for an object.
Installing dependencies
[1]
Collecting git+https://github.com/facebookresearch/segment-anything.git
Cloning https://github.com/facebookresearch/segment-anything.git to /tmp/pip-req-build-2fwtu0fi
Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/segment-anything.git /tmp/pip-req-build-2fwtu0fi
Resolved https://github.com/facebookresearch/segment-anything.git to commit 6fdee8f2727f4506cfbbe553e23b895e27956588
Preparing metadata (setup.py) ... done
Building wheels for collected packages: segment-anything
Building wheel for segment-anything (setup.py) ... done
Created wheel for segment-anything: filename=segment_anything-1.0-py3-none-any.whl size=36587 sha256=7bcd600b68024d6961c11ce285ba75b81f7511d45614fae681d1575b88060669
Stored in directory: /tmp/pip-ephem-wheel-cache-saey51gc/wheels/10/cf/59/9ccb2f0a1bcc81d4fbd0e501680b5d088d690c6cfbc02dc99d
Successfully built segment-anything
Installing collected packages: segment-anything
Successfully installed segment-anything-1.0
Collecting open_clip_torch
Downloading open_clip_torch-2.23.0-py3-none-any.whl (1.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 11.5 MB/s eta 0:00:00
Requirement already satisfied: torch>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (2.1.0+cu118)
Requirement already satisfied: torchvision in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (0.16.0+cu118)
Requirement already satisfied: regex in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (2023.6.3)
Collecting ftfy (from open_clip_torch)
Downloading ftfy-6.1.3-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.4/53.4 kB 7.6 MB/s eta 0:00:00
Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (4.66.1)
Requirement already satisfied: huggingface-hub in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (0.19.4)
Collecting sentencepiece (from open_clip_torch)
Downloading sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 17.3 MB/s eta 0:00:00
Requirement already satisfied: protobuf in /usr/local/lib/python3.10/dist-packages (from open_clip_torch) (3.20.3)
Collecting timm (from open_clip_torch)
Downloading timm-0.9.12-py3-none-any.whl (2.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 28.2 MB/s eta 0:00:00
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (3.13.1)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (4.5.0)
Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (1.12)
Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (3.2.1)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (3.1.2)
Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (2023.6.0)
Requirement already satisfied: triton==2.1.0 in /usr/local/lib/python3.10/dist-packages (from torch>=1.9.0->open_clip_torch) (2.1.0)
Requirement already satisfied: wcwidth<0.3.0,>=0.2.12 in /usr/local/lib/python3.10/dist-packages (from ftfy->open_clip_torch) (0.2.12)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface-hub->open_clip_torch) (2.31.0)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub->open_clip_torch) (6.0.1)
Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub->open_clip_torch) (23.2)
Requirement already satisfied: safetensors in /usr/local/lib/python3.10/dist-packages (from timm->open_clip_torch) (0.4.1)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from torchvision->open_clip_torch) (1.23.5)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.10/dist-packages (from torchvision->open_clip_torch) (9.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.9.0->open_clip_torch) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->open_clip_torch) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->open_clip_torch) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->open_clip_torch) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface-hub->open_clip_torch) (2023.11.17)
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->torch>=1.9.0->open_clip_torch) (1.3.0)
Installing collected packages: sentencepiece, ftfy, timm, open_clip_torch
Successfully installed ftfy-6.1.3 open_clip_torch-2.23.0 sentencepiece-0.1.99 timm-0.9.12
Collecting lancedb
Downloading lancedb-0.3.4-py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.4/78.4 kB 3.1 MB/s eta 0:00:00
Collecting deprecation (from lancedb)
Downloading deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Collecting pylance==0.8.17 (from lancedb)
Downloading pylance-0.8.17-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.2/19.2 MB 58.3 MB/s eta 0:00:00
Collecting ratelimiter~=1.0 (from lancedb)
Downloading ratelimiter-1.2.0.post0-py3-none-any.whl (6.6 kB)
Collecting retry>=0.9.2 (from lancedb)
Downloading retry-0.9.2-py2.py3-none-any.whl (8.0 kB)
Requirement already satisfied: tqdm>=4.1.0 in /usr/local/lib/python3.10/dist-packages (from lancedb) (4.66.1)
Requirement already satisfied: aiohttp in /usr/local/lib/python3.10/dist-packages (from lancedb) (3.9.1)
Requirement already satisfied: pydantic>=1.10 in /usr/local/lib/python3.10/dist-packages (from lancedb) (1.10.13)
Requirement already satisfied: attrs>=21.3.0 in /usr/local/lib/python3.10/dist-packages (from lancedb) (23.1.0)
Collecting semver>=3.0 (from lancedb)
Downloading semver-3.0.2-py3-none-any.whl (17 kB)
Requirement already satisfied: cachetools in /usr/local/lib/python3.10/dist-packages (from lancedb) (5.3.2)
Requirement already satisfied: pyyaml>=6.0 in /usr/local/lib/python3.10/dist-packages (from lancedb) (6.0.1)
Requirement already satisfied: click>=8.1.7 in /usr/local/lib/python3.10/dist-packages (from lancedb) (8.1.7)
Requirement already satisfied: requests>=2.31.0 in /usr/local/lib/python3.10/dist-packages (from lancedb) (2.31.0)
Collecting overrides>=0.7 (from lancedb)
Downloading overrides-7.4.0-py3-none-any.whl (17 kB)
Collecting pyarrow>=10 (from pylance==0.8.17->lancedb)
Downloading pyarrow-14.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (38.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.0/38.0 MB 17.0 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.22 in /usr/local/lib/python3.10/dist-packages (from pylance==0.8.17->lancedb) (1.23.5)
Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.10/dist-packages (from pydantic>=1.10->lancedb) (4.5.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.31.0->lancedb) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.31.0->lancedb) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.31.0->lancedb) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.31.0->lancedb) (2023.11.17)
Requirement already satisfied: decorator>=3.4.2 in /usr/local/lib/python3.10/dist-packages (from retry>=0.9.2->lancedb) (4.4.2)
Collecting py<2.0.0,>=1.4.26 (from retry>=0.9.2->lancedb)
Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.7/98.7 kB 10.2 MB/s eta 0:00:00
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.10/dist-packages (from aiohttp->lancedb) (6.0.4)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->lancedb) (1.9.3)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from aiohttp->lancedb) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.10/dist-packages (from aiohttp->lancedb) (1.3.1)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /usr/local/lib/python3.10/dist-packages (from aiohttp->lancedb) (4.0.3)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from deprecation->lancedb) (23.2)
Installing collected packages: ratelimiter, semver, pyarrow, py, overrides, deprecation, retry, pylance, lancedb
Attempting uninstall: pyarrow
Found existing installation: pyarrow 9.0.0
Uninstalling pyarrow-9.0.0:
Successfully uninstalled pyarrow-9.0.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ibis-framework 6.2.0 requires pyarrow<13,>=2, but you have pyarrow 14.0.1 which is incompatible.
pandas-gbq 0.17.9 requires pyarrow<10.0dev,>=3.0.0, but you have pyarrow 14.0.1 which is incompatible.
Successfully installed deprecation-2.1.0 lancedb-0.3.4 overrides-7.4.0 py-1.11.0 pyarrow-14.0.1 pylance-0.8.17 ratelimiter-1.2.0.post0 retry-0.9.2 semver-3.0.2
Import libraries
[36]
Load SAM weights
[2]
Initialize database
[3]
Load model
[4]
open_clip_pytorch_model.bin: 0%| | 0.00/605M [00:00<?, ?B/s]
CLIP( , (visual): VisionTransformer( , (conv1): Conv2d(3, 768, kernel_size=(32, 32), stride=(32, 32), bias=False) , (patch_dropout): Identity() , (ln_pre): LayerNorm((768,), eps=1e-05, elementwise_affine=True) , (transformer): Transformer( , (resblocks): ModuleList( , (0-11): 12 x ResidualAttentionBlock( , (ln_1): LayerNorm((768,), eps=1e-05, elementwise_affine=True) , (attn): MultiheadAttention( , (out_proj): NonDynamicallyQuantizableLinear(in_features=768, out_features=768, bias=True) , ) , (ls_1): Identity() , (ln_2): LayerNorm((768,), eps=1e-05, elementwise_affine=True) , (mlp): Sequential( , (c_fc): Linear(in_features=768, out_features=3072, bias=True) , (gelu): GELU(approximate='none') , (c_proj): Linear(in_features=3072, out_features=768, bias=True) , ) , (ls_2): Identity() , ) , ) , ) , (ln_post): LayerNorm((768,), eps=1e-05, elementwise_affine=True) , ) , (transformer): Transformer( , (resblocks): ModuleList( , (0-11): 12 x ResidualAttentionBlock( , (ln_1): LayerNorm((512,), eps=1e-05, elementwise_affine=True) , (attn): MultiheadAttention( , (out_proj): NonDynamicallyQuantizableLinear(in_features=512, out_features=512, bias=True) , ) , (ls_1): Identity() , (ln_2): LayerNorm((512,), eps=1e-05, elementwise_affine=True) , (mlp): Sequential( , (c_fc): Linear(in_features=512, out_features=2048, bias=True) , (gelu): GELU(approximate='none') , (c_proj): Linear(in_features=2048, out_features=512, bias=True) , ) , (ls_2): Identity() , ) , ) , ) , (token_embedding): Embedding(49408, 512) , (ln_final): LayerNorm((512,), eps=1e-05, elementwise_affine=True) ,)
Image embeddings
[23]
[6]
[39]
Create images from new segmentation masks
[8]
[9]
Composite function to call all functionalities
[10]
[ ]
Query the database using Natural Query
[34]
[12]
[13]
079698
[24]
Search within Image
[35]
<ipython-input-34-9e56bc3147b0>:15: DeprecatedWarning: to_df is deprecated as of 0.3.1 and will be removed in 0.4.0. Use to_pandas() instead target = vector_table.search(k_embedding_list).limit(1).to_df()
Display the Segmentation Masks (Optional)
[44]
[54]
Segmentation 1 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 41611 - Bounding Box: [107, 306, 568, 159] - Predicted IOU: 1.0235613584518433 - Point Coordinates: [[237.5, 391.03125]] - Stability Score: 0.9665665626525879 - Crop Box: [0, 0, 800, 582]
Segmentation 2 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 41712 - Bounding Box: [107, 142, 568, 322] - Predicted IOU: 1.0185126066207886 - Point Coordinates: [[112.5, 372.84375]] - Stability Score: 0.962044358253479 - Crop Box: [0, 0, 800, 582]
Segmentation 3 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 36694 - Bounding Box: [331, 64, 132, 439] - Predicted IOU: 1.0150949954986572 - Point Coordinates: [[362.5, 245.53125]] - Stability Score: 0.9721011519432068 - Crop Box: [0, 0, 800, 582]
Segmentation 4 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... True True True] [False False False ... False False False] [False False False ... False False False]] - Area: 365699 - Bounding Box: [0, 2, 799, 577] - Predicted IOU: 1.0133819580078125 - Point Coordinates: [[712.5, 9.09375]] - Stability Score: 0.988547146320343 - Crop Box: [0, 0, 800, 582]
Segmentation 5 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 4585 - Bounding Box: [160, 383, 77, 72] - Predicted IOU: 1.0104466676712036 - Point Coordinates: [[187.5, 409.21875]] - Stability Score: 0.9850842952728271 - Crop Box: [0, 0, 800, 582]
Segmentation 6 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 9504 - Bounding Box: [418, 359, 119, 145] - Predicted IOU: 1.0063835382461548 - Point Coordinates: [[462.5, 427.40625]] - Stability Score: 0.9682473540306091 - Crop Box: [0, 0, 800, 582]
Segmentation 7 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [ True True True ... True True False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 250489 - Bounding Box: [0, 2, 799, 390] - Predicted IOU: 1.0047119855880737 - Point Coordinates: [[462.5, 245.53125]] - Stability Score: 0.9785979986190796 - Crop Box: [0, 0, 800, 582]
Segmentation 8 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1996 - Bounding Box: [172, 394, 48, 50] - Predicted IOU: 1.0041521787643433 - Point Coordinates: [[212.5, 409.21875]] - Stability Score: 0.991008996963501 - Crop Box: [0, 0, 800, 582]
Segmentation 9 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [ True True True ... True True True] [False False False ... False False False] [False False False ... False False False]] - Area: 113716 - Bounding Box: [0, 392, 799, 187] - Predicted IOU: 1.0034291744232178 - Point Coordinates: [[137.5, 427.40625]] - Stability Score: 0.9641968011856079 - Crop Box: [0, 0, 800, 582]
Segmentation 10 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 16281 - Bounding Box: [340, 256, 101, 226] - Predicted IOU: 1.0015268325805664 - Point Coordinates: [[362.5, 372.84375]] - Stability Score: 0.9821080565452576 - Crop Box: [0, 0, 800, 582]
Segmentation 11 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 12259 - Bounding Box: [330, 120, 133, 175] - Predicted IOU: 0.9962115287780762 - Point Coordinates: [[462.5, 190.96875]] - Stability Score: 0.9634341597557068 - Crop Box: [0, 0, 800, 582]
Segmentation 12 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 2184 - Bounding Box: [509, 396, 61, 69] - Predicted IOU: 0.9904167652130127 - Point Coordinates: [[537.5, 427.40625]] - Stability Score: 0.9650537371635437 - Crop Box: [0, 0, 800, 582]
Segmentation 13 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 622 - Bounding Box: [358, 482, 38, 21] - Predicted IOU: 0.9883782267570496 - Point Coordinates: [[387.5, 500.15625]] - Stability Score: 0.9935794472694397 - Crop Box: [0, 0, 800, 582]
Segmentation 14 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 560 - Bounding Box: [402, 478, 25, 26] - Predicted IOU: 0.9865313172340393 - Point Coordinates: [[412.5, 481.96875]] - Stability Score: 0.9822379946708679 - Crop Box: [0, 0, 800, 582]
Segmentation 15 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 361 - Bounding Box: [660, 383, 16, 31] - Predicted IOU: 0.9778174161911011 - Point Coordinates: [[662.5, 409.21875]] - Stability Score: 0.9863013625144958 - Crop Box: [0, 0, 800, 582]
Segmentation 16 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 326 - Bounding Box: [106, 385, 20, 25] - Predicted IOU: 0.9736118316650391 - Point Coordinates: [[112.5, 391.03125]] - Stability Score: 0.9878787994384766 - Crop Box: [0, 0, 800, 582]
Segmentation 17 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1781 - Bounding Box: [376, 135, 22, 113] - Predicted IOU: 0.966787576675415 - Point Coordinates: [[387.5, 172.78125]] - Stability Score: 0.972421407699585 - Crop Box: [0, 0, 800, 582]
Segmentation 18 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1149 - Bounding Box: [358, 479, 69, 25] - Predicted IOU: 0.9562665224075317 - Point Coordinates: [[362.5, 500.15625]] - Stability Score: 0.9666666388511658 - Crop Box: [0, 0, 800, 582]
Segmentation 19 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 688 - Bounding Box: [533, 407, 20, 46] - Predicted IOU: 0.9507281184196472 - Point Coordinates: [[537.5, 427.40625]] - Stability Score: 0.9715505242347717 - Crop Box: [0, 0, 800, 582]
Segmentation 20 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1329 - Bounding Box: [544, 454, 120, 15] - Predicted IOU: 0.9482901692390442 - Point Coordinates: [[562.5, 463.78125]] - Stability Score: 0.9732142686843872 - Crop Box: [0, 0, 800, 582]
Segmentation 21 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1707 - Bounding Box: [374, 71, 36, 61] - Predicted IOU: 0.9459723234176636 - Point Coordinates: [[387.5, 118.21875]] - Stability Score: 0.967797577381134 - Crop Box: [0, 0, 800, 582]
Segmentation 22 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 911 - Bounding Box: [369, 63, 48, 54] - Predicted IOU: 0.9456807971000671 - Point Coordinates: [[412.5, 81.84375]] - Stability Score: 0.9581095576286316 - Crop Box: [0, 0, 800, 582]
Segmentation 23 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 1359 - Bounding Box: [439, 313, 43, 38] - Predicted IOU: 0.93308025598526 - Point Coordinates: [[462.5, 318.28125]] - Stability Score: 0.9680927991867065 - Crop Box: [0, 0, 800, 582]
Segmentation 24 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 647 - Bounding Box: [439, 324, 32, 25] - Predicted IOU: 0.9214211106300354 - Point Coordinates: [[462.5, 336.46875]] - Stability Score: 0.9754977226257324 - Crop Box: [0, 0, 800, 582]
Segmentation 25 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 224 - Bounding Box: [301, 328, 16, 15] - Predicted IOU: 0.8966742157936096 - Point Coordinates: [[312.5, 336.46875]] - Stability Score: 0.969298243522644 - Crop Box: [0, 0, 800, 582]
Segmentation 26 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 185 - Bounding Box: [454, 362, 17, 16] - Predicted IOU: 0.8845255970954895 - Point Coordinates: [[462.5, 372.84375]] - Stability Score: 0.9945945739746094 - Crop Box: [0, 0, 800, 582]
Segmentation 27 Info: - Segmentation Mask: [[False False False ... False False False] [False False False ... False False False] [False False False ... False False False] ... [False False False ... False False False] [False False False ... False False False] [False False False ... False False False]] - Area: 477 - Bounding Box: [121, 439, 53, 15] - Predicted IOU: 0.8811061382293701 - Point Coordinates: [[162.5, 445.59375]] - Stability Score: 0.9590163826942444 - Crop Box: [0, 0, 800, 582]
[ ]