Skip to content

Commit

Permalink
Update OpenCLIP docs (#14319)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancemartin authored Dec 5, 2023
1 parent a74c03d commit 29e993a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/integrations/text_embedding/open_clip.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 29e993a

Please sign in to comment.