The model is now added to WebAI.js. Try it in your browser with no code required.
#1
by
AxolsWebAI
- opened
Hi there,
We've packaged this model inside our open-source library WebAI.js, so you can now integrate it into your project with just a few lines of code:
import { WebAI } from '@axols/webai-js';
const webai = await WebAI.create({
modelId: "clip-vit-base-patch16"
});
Reset
Edit
await webai.init({
mode: "webai",
precision: "fp32",
device: "webgpu"
});
const generation = await webai.generate({
userInput: {
image_blob_url: "blob:https://www.webai-js.com/e9eb8fa3-c15f-444a-91ec-63802d8e47b0",
classLabels: [
"person",
"car",
"tree"
]
},
modelConfig: {},
generateConfig: {}
});
π¬ Try CLIP Base (ViT-B/16) Instantly (No Code Required)
You can benchmark and test the model directly here:
https://www.webai-js.com/models/clip-vit-base-patch16/playground
π Full API Reference
Detailed parameter explanations can be found here:
https://www.webai-js.com/models/clip-vit-base-patch16/api-reference/v1/class-api/methods/webai-generate
π§‘ Fully Open Source
WebAI.js is completely open source and free to use.
Star or contribute on GitHub:
https://github.com/axolsai/webai-js
Thanks

