We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import requests from PIL import Image url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) from imgbeddings import imgbeddings ibed = imgbeddings()
embedding = ibed.to_embeddings(image) embedding[:, 0:5]
array([[ 0.914541 , 0.45988417, 0.0350069 , -0.9054574 , 0.08941309]], dtype=float32)
embedding = ibed.to_embeddings([image]*4) embedding[:, 0:5]
array([[ 0.9133097 , 0.46032238, 0.03528907, -0.90713847, 0.09063635], [ 0.9133097 , 0.46032238, 0.03528907, -0.90713847, 0.09063635], [ 0.9133097 , 0.46032238, 0.03528907, -0.90713847, 0.09063635], [ 0.9133097 , 0.46032238, 0.03528907, -0.90713847, 0.09063635]], dtype=float32)
Probably a side effect of ONNX conversion as that's within tolerances. (or a case where intra op is breaking parallelism?)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Probably a side effect of ONNX conversion as that's within tolerances. (or a case where intra op is breaking parallelism?)
The text was updated successfully, but these errors were encountered: