The model is now added to WebAI.js. Try it in your browser with no code required.

#3
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: "detr-resnet-50"
});

await webai.init({
  mode: "webai",
  precision: "fp16",
  device: "webgpu"
});

const generation = await webai.generate({
  userInput: {
    image_blob_url: "blob:https://www.webai-js.com/f6b8814d-8ea0-47dd-8d8d-7e4de033a6a0"
  },
  modelConfig: {
    score_threshold: 0.5,
    max_detections: 100
  },
  generateConfig: {
    return_labeled_image: true
  }
});

πŸ”¬ Try DEtection TRansformer (DETR) ResNet 50 Instantly (No Code Required)

You can benchmark and test the model directly here:
https://www.webai-js.com/models/detr-resnet-50/playground

image

image


πŸ“˜ Full API Reference

Detailed parameter explanations can be found here:
https://www.webai-js.com/models/detr-resnet-50/api-reference/v1/class-api/methods/webai-generate

image


🧑 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

Sign up or log in to comment