lyly21 commited on
Commit
9051dd8
โ€ข
1 Parent(s): 6cebde3

Update mobilevit.html

Browse files
Files changed (1) hide show
  1. mobilevit.html +1 -1
mobilevit.html CHANGED
@@ -112,7 +112,7 @@
112
  // Initialize the sentiment analysis model
113
  async function initializeModel() {
114
  // pipeline ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ Xenova/mobilevit-small ๋ชจ๋ธ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ด๋ฅผ classifier์— ์ง€์ •ํ•˜์‹ญ์‹œ์˜ค. ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ์‹œ quantized ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ๊ฐ’์„ false๋กœ ์„ค์ •ํ•˜์‹ญ์‹œ์˜ค.
115
- classifier = pipeline('image-classification', { model: 'Xenova/mobilevit-small', quantized: false });
116
  }
117
  async function classifyImage() {
118
  const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();
 
112
  // Initialize the sentiment analysis model
113
  async function initializeModel() {
114
  // pipeline ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ Xenova/mobilevit-small ๋ชจ๋ธ์˜ ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ด๋ฅผ classifier์— ์ง€์ •ํ•˜์‹ญ์‹œ์˜ค. ์ธ์Šคํ„ด์Šค ์ƒ์„ฑ ์‹œ quantized ํŒŒ๋ผ๋ฏธํ„ฐ์˜ ๊ฐ’์„ false๋กœ ์„ค์ •ํ•˜์‹ญ์‹œ์˜ค.
115
+ classifier = await pipeline('image-classification', 'Xenova/mobilevit-small', { quantized: false, });
116
  }
117
  async function classifyImage() {
118
  const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();