ilar06 commited on
Commit
09e5d64
ยท
verified ยท
1 Parent(s): 5980ab9

Update mobilevit.html

Browse files
Files changed (1) hide show
  1. mobilevit.html +4 -6
mobilevit.html CHANGED
@@ -7,7 +7,7 @@
7
 
8
  <script type="module">
9
  // ํ—ˆ๊น…ํŽ˜์ด์Šค์˜ pipeline ๋ชจ๋“ˆ์„ importํ•˜์‹ญ์‹œ์˜ค.
10
- import {pipeline} from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]'; //va bene l'url???
11
  // To-Do: ???
12
 
13
  // Make it available globally
@@ -117,12 +117,10 @@
117
 
118
  // pipeline ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ Xenova/mobilevit-small ๋ชจ๋ธ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ด๋ฅผ classifier์— ์ €์ •ํ•˜์‹ญ์‹œ์˜ค. ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ์‹œ quantized ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ๊ฐ’์„ false๋กœ ์„ค์ •ํ•˜์‹ญ์‹œ์˜ค.
119
  // To-Do: ???
120
- classifier = await pipeline ('image-classification', 'Xenova/mobilevit-small'); //task va bene??
121
- const result = await classifier(textFieldValue, {
122
- quantized: false, //???????
123
- });
124
-
125
  }
 
 
126
  async function classifyImage() {
127
  const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();
128
  const result = await classifier(textFieldValue);
 
7
 
8
  <script type="module">
9
  // ํ—ˆ๊น…ํŽ˜์ด์Šค์˜ pipeline ๋ชจ๋“ˆ์„ importํ•˜์‹ญ์‹œ์˜ค.
10
+ import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]'; //va bene l'url???
11
  // To-Do: ???
12
 
13
  // Make it available globally
 
117
 
118
  // pipeline ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ Xenova/mobilevit-small ๋ชจ๋ธ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ด๋ฅผ classifier์— ์ €์ •ํ•˜์‹ญ์‹œ์˜ค. ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ์‹œ quantized ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ๊ฐ’์„ false๋กœ ์„ค์ •ํ•˜์‹ญ์‹œ์˜ค.
119
  // To-Do: ???
120
+ classifier = await pipeline ('image-classification', 'Xenova/mobilevit-small'); //task va bene?
 
 
 
 
121
  }
122
+
123
+
124
  async function classifyImage() {
125
  const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();
126
  const result = await classifier(textFieldValue);