Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -35,12 +35,12 @@ import { CLIPVisionModelWithProjection, AutoProcessor, RawImage } from '@hugging
|
|
| 35 |
const modelSize = 's2';
|
| 36 |
|
| 37 |
// Load model and processor
|
| 38 |
-
const model = await CLIPVisionModelWithProjection.from_pretrained('plhery/mobileclip2-
|
| 39 |
device: 'webgpu', // or 'wasm'
|
| 40 |
dtype: 'fp32',
|
| 41 |
model_file_name: `onnx/${modelSize}/vision_model`,
|
| 42 |
});
|
| 43 |
-
const processor = await AutoProcessor.from_pretrained('plhery/mobileclip2-
|
| 44 |
config_file_name: `onnx/${modelSize}/preprocessor_config.json`,
|
| 45 |
});
|
| 46 |
|
|
|
|
| 35 |
const modelSize = 's2';
|
| 36 |
|
| 37 |
// Load model and processor
|
| 38 |
+
const model = await CLIPVisionModelWithProjection.from_pretrained('plhery/mobileclip2-onnx', {
|
| 39 |
device: 'webgpu', // or 'wasm'
|
| 40 |
dtype: 'fp32',
|
| 41 |
model_file_name: `onnx/${modelSize}/vision_model`,
|
| 42 |
});
|
| 43 |
+
const processor = await AutoProcessor.from_pretrained('plhery/mobileclip2-onnx', {
|
| 44 |
config_file_name: `onnx/${modelSize}/preprocessor_config.json`,
|
| 45 |
});
|
| 46 |
|