Skip to main content

A package for performing text-to-image and image-to-image searches using embedding-based techniques

Project description

Griffin-Vision

A package for performing text-to-image and image-to-image searches using embedding-based techniques

IMPORTANT!

Note: Before using the package , ensure your have follwing env variables "QDRANT_URL","QDRANT_API_KEY"

Usage

`Import`  
from griffin_vision.Core import Griffin

`Class initialization`

griffin_obj=Griffin(
    model_type="clip",
    vectorstore="qdrant",
    collectionname="user:project"
)
`Image Embeddings  Generation and Saving in VectorStore`

griffin_obj.generate_image_embeddings(
    new_collection=True , # OR False if collection already exists,
    imageurls=["https://samplelink/to/image1.jpg","https://samplelink/to/image2.jpg"]
)


`Text to Image Similarity Search`

search_result=griffin_obj.search_similar_images(text="query text",result_limit=1)
print(search_result)

Author:Junaid Bashir Note:Currently Qdrant is the only supported vectorstore (new stores coming soon)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

griffin_vision-0.0.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

griffin_vision-0.0.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file griffin_vision-0.0.0.tar.gz.

File metadata

  • Download URL: griffin_vision-0.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.1

File hashes

Hashes for griffin_vision-0.0.0.tar.gz
Algorithm Hash digest
SHA256 c8184e2caa8c3ef3b4259f3fb44fba375a0cdc3b690eb795334392ccdc9e6381
MD5 3fcc1d1225227a6f07bdfb21732b95ce
BLAKE2b-256 b4e1502fefb525fb5702763126d0cc4388ca604e8c27dcf9ac5804de63cf5b47

See more details on using hashes here.

File details

Details for the file griffin_vision-0.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for griffin_vision-0.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6d0752f07f2834d93b8efdfcb295c60a09fce90ffb3cfea8cae2ab3a2116cb5
MD5 614f44aca9038f44fc8138feb6b22e85
BLAKE2b-256 7c0ef88651bdaa86766c905c8aab21074715f1d6fd7160819d2ad25580f60bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page