Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -14,6 +14,10 @@ const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs
|
|
14 |
// Create a new object detection pipeline
|
15 |
status.textContent = 'Loading model...';
|
16 |
const processor = await AutoProcessor.from_pretrained('Xenova/yolov9-c');
|
|
|
|
|
|
|
|
|
17 |
const model = await AutoModel.from_pretrained('Xenova/yolov9-c', {
|
18 |
quantized: false,
|
19 |
});
|
|
|
14 |
// Create a new object detection pipeline
|
15 |
status.textContent = 'Loading model...';
|
16 |
const processor = await AutoProcessor.from_pretrained('Xenova/yolov9-c');
|
17 |
+
|
18 |
+
// Testing
|
19 |
+
processor.feature_extractor.size = { width: 128, height: 128 }
|
20 |
+
|
21 |
const model = await AutoModel.from_pretrained('Xenova/yolov9-c', {
|
22 |
quantized: false,
|
23 |
});
|