Skip to content
New issue

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

Add support for DiT models #474

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Add support for DiT models #474

merged 1 commit into from
Dec 26, 2023

Conversation

xenova
Copy link
Collaborator

@xenova xenova commented Dec 24, 2023

Example usage:

import { pipeline } from '@xenova/transformers';

const classifier = await pipeline('image-classification', 'Xenova/dit-base-finetuned-rvlcdip');
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/coca_cola_advertisement.png';
const output = await classifier(url);
// [{ label: 'advertisement', score: 0.9035086035728455 }]

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@xenova xenova merged commit 44b62ed into main Dec 26, 2023
4 checks passed
@xenova xenova deleted the add-dit branch December 26, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants