Xenova HF staff commited on
Commit
180a7d9
1 Parent(s): 9bed776

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -0
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
  });