mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 23:41:46 +00:00
Update OpenCLIP docs (#14319)
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
"uri_house = \"/Users/rlm/Desktop/test/house.jpg\"\n",
|
||||
"\n",
|
||||
"# Embe images or text\n",
|
||||
"clip_embd = OpenCLIPEmbeddings()\n",
|
||||
"clip_embd = OpenCLIPEmbeddings(model_name=\"ViT-g-14\", checkpoint=\"laion2b_s34b_b88k\")\n",
|
||||
"img_feat_dog = clip_embd.embed_image([uri_dog])\n",
|
||||
"img_feat_house = clip_embd.embed_image([uri_house])\n",
|
||||
"text_feat_dog = clip_embd.embed_documents([\"dog\"])\n",
|
||||
|
Reference in New Issue
Block a user