Closed ibelem closed 3 months ago
This Image Classification demo is based on Transformer.js, which experimentally enabled WebNN by modifying some source code of Transformer.js.
const classifier = await pipeline('image-classification', modelPath, options); const url = 'tiger.jpg'; const output = await classifier(url);
Image Classification:
@Adele101 PTAL
Thanks @fdwr 's review, nearly all the format issues have been fixed. PTAL
This Image Classification demo is based on Transformer.js, which experimentally enabled WebNN by modifying some source code of Transformer.js.
Image Classification:
@Adele101 PTAL