Update index.html
Browse files- index.html +91 -4
index.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html lang="
|
| 3 |
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8" />
|
|
@@ -7,9 +7,94 @@
|
|
| 7 |
<title>Transformers.js - WebGPU Background Removal</title>
|
| 8 |
<script type="module" crossorigin src="/assets/index-17_Va4sS.js"></script>
|
| 9 |
<link rel="stylesheet" crossorigin href="/assets/index-SojaDS6z.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
</head>
|
| 11 |
|
| 12 |
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
<div id="container">
|
| 14 |
<label id="upload-button" for="upload">
|
| 15 |
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -21,10 +106,12 @@
|
|
| 21 |
<label id="example">(๋๋ ์์ ํ์ธ)</label>
|
| 22 |
</label>
|
| 23 |
</div>
|
| 24 |
-
<label id="status"></label>
|
| 25 |
-
<input id="upload" type="file" accept="image/*" />
|
| 26 |
|
|
|
|
|
|
|
| 27 |
|
|
|
|
|
|
|
| 28 |
</body>
|
| 29 |
|
| 30 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html lang="ko">
|
| 3 |
|
| 4 |
<head>
|
| 5 |
<meta charset="UTF-8" />
|
|
|
|
| 7 |
<title>Transformers.js - WebGPU Background Removal</title>
|
| 8 |
<script type="module" crossorigin src="/assets/index-17_Va4sS.js"></script>
|
| 9 |
<link rel="stylesheet" crossorigin href="/assets/index-SojaDS6z.css">
|
| 10 |
+
<style>
|
| 11 |
+
body {
|
| 12 |
+
display: flex;
|
| 13 |
+
flex-direction: column;
|
| 14 |
+
align-items: center;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
min-height: 100vh;
|
| 17 |
+
padding: 16px 32px;
|
| 18 |
+
box-sizing: border-box;
|
| 19 |
+
margin: 0;
|
| 20 |
+
font-family: sans-serif;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
#description {
|
| 24 |
+
max-width: 640px;
|
| 25 |
+
margin-bottom: 20px;
|
| 26 |
+
padding: 20px;
|
| 27 |
+
background-color: #f3f4f6;
|
| 28 |
+
border-radius: 0.75rem;
|
| 29 |
+
text-align: center;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
#container {
|
| 33 |
+
position: relative;
|
| 34 |
+
width: 640px;
|
| 35 |
+
height: 420px;
|
| 36 |
+
max-width: 100%;
|
| 37 |
+
max-height: 100%;
|
| 38 |
+
border: 2px dashed #D1D5DB;
|
| 39 |
+
border-radius: 0.75rem;
|
| 40 |
+
overflow: hidden;
|
| 41 |
+
cursor: pointer;
|
| 42 |
+
margin-top: 1rem;
|
| 43 |
+
display: flex;
|
| 44 |
+
flex-direction: column;
|
| 45 |
+
justify-content: center;
|
| 46 |
+
align-items: center;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
#upload-button {
|
| 50 |
+
gap: 0.4rem;
|
| 51 |
+
font-size: 18px;
|
| 52 |
+
cursor: pointer;
|
| 53 |
+
display: flex;
|
| 54 |
+
flex-direction: column;
|
| 55 |
+
justify-content: center;
|
| 56 |
+
align-items: center;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
#upload {
|
| 60 |
+
display: none;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
svg {
|
| 64 |
+
pointer-events: none;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
#example {
|
| 68 |
+
font-size: 14px;
|
| 69 |
+
text-decoration: underline;
|
| 70 |
+
cursor: pointer;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
#example:hover {
|
| 74 |
+
color: #2563eb;
|
| 75 |
+
}
|
| 76 |
+
</style>
|
| 77 |
</head>
|
| 78 |
|
| 79 |
<body>
|
| 80 |
+
<!-- ์ค๋ช
์์ญ -->
|
| 81 |
+
<div id="description">
|
| 82 |
+
<p>
|
| 83 |
+
์ด ์ ํ๋ฆฌ์ผ์ด์
์ ์ด๋ฏธ์ง๋ฅผ ์
๋ก๋ํ๋ฉด ์๋์ผ๋ก ๋ฐฐ๊ฒฝ์ ์ญ์ ํด์ฃผ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค.
|
| 84 |
+
WebGPU ๊ธฐ์ ์ ํ์ฉํ์ฌ ๋ธ๋ผ์ฐ์ ์์ ์ค์๊ฐ์ผ๋ก ์ด๋ฏธ์ง๋ฅผ ์ฒ๋ฆฌํ๊ณ ๋ฐฐ๊ฒฝ์ ์ ๊ฑฐํฉ๋๋ค.
|
| 85 |
+
์ฌ์ฉ์๋ ์
๋ก๋ํ ์ด๋ฏธ์ง์ ์ฃผ์ ๊ฐ์ฒด๋ฅผ ์ฝ๊ฒ ๋ถ๋ฆฌํ ์ ์์ผ๋ฉฐ, ๊ฒฐ๊ณผ ์ด๋ฏธ์ง๋ฅผ ๋ค๋ฅธ ์ฉ๋๋ก ํ์ฉํ ์ ์์ต๋๋ค.
|
| 86 |
+
</p>
|
| 87 |
+
<p>
|
| 88 |
+
<strong>์ฌ์ฉ ๋ฐฉ๋ฒ:</strong>
|
| 89 |
+
</p>
|
| 90 |
+
<ul style="list-style: none; padding: 0; text-align: left;">
|
| 91 |
+
<li>ํด๋ฆญํ์ฌ ์ด๋ฏธ์ง๋ฅผ ์
๋ก๋ํ๊ฑฐ๋ "(๋๋ ์์ ํ์ธ)"์ผ๋ก ์ํ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.</li>
|
| 92 |
+
<li>์ด๋ฏธ์ง๊ฐ ์
๋ก๋๋๋ฉด ์๋์ผ๋ก ๋ฐฐ๊ฒฝ์ด ์ ๊ฑฐ๋ฉ๋๋ค.</li>
|
| 93 |
+
<li>์ฒ๋ฆฌ๋ ์ด๋ฏธ์ง๋ฅผ ๋ค์ด๋ก๋ํ๊ฑฐ๋ ๋ค๋ฅธ ์์
์ ์ฌ์ฉํ ์ ์์ต๋๋ค.</li>
|
| 94 |
+
</ul>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<!-- ์ด๋ฏธ์ง ์
๋ก๋ ์ปจํ
์ด๋ -->
|
| 98 |
<div id="container">
|
| 99 |
<label id="upload-button" for="upload">
|
| 100 |
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
| 106 |
<label id="example">(๋๋ ์์ ํ์ธ)</label>
|
| 107 |
</label>
|
| 108 |
</div>
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
<!-- ์ํ ๋ ์ด๋ธ -->
|
| 111 |
+
<label id="status"></label>
|
| 112 |
|
| 113 |
+
<!-- ์จ๊ฒจ์ง ํ์ผ ์
๋ ฅ -->
|
| 114 |
+
<input id="upload" type="file" accept="image/*" />
|
| 115 |
</body>
|
| 116 |
|
| 117 |
+
</html>
|