docwar commited on
Commit
303c0f6
·
verified ·
1 Parent(s): 507002b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +442 -423
index.html CHANGED
@@ -1,435 +1,454 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="description"
6
- content="Deformable Neural Radiance Fields creates free-viewpoint portraits (nerfies) from casually captured videos.">
7
- <meta name="keywords" content="Nerfies, D-NeRF, NeRF">
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <title>Nerfies: Deformable Neural Radiance Fields</title>
10
-
11
- <link href="https://fonts.googleapis.com/css?family=Google+Sans|Noto+Sans|Castoro"
12
- rel="stylesheet">
13
-
14
- <link rel="stylesheet" href="./static/css/bulma.min.css">
15
- <link rel="stylesheet" href="./static/css/bulma-carousel.min.css">
16
- <link rel="stylesheet" href="./static/css/bulma-slider.min.css">
17
- <link rel="stylesheet" href="./static/css/fontawesome.all.min.css">
18
- <link rel="stylesheet"
19
- href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
20
- <link rel="stylesheet" href="./static/css/index.css">
21
- <link rel="icon" href="./static/images/favicon.svg">
22
 
23
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
24
- <script defer src="./static/js/fontawesome.all.min.js"></script>
25
- <script src="./static/js/bulma-carousel.min.js"></script>
26
- <script src="./static/js/bulma-slider.min.js"></script>
27
- <script src="./static/js/index.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </head>
29
- <body>
30
-
31
- <section class="hero">
32
- <div class="hero-body">
33
- <div class="container is-max-desktop">
34
- <div class="columns is-centered">
35
- <div class="column has-text-centered">
36
- <h1 class="title is-1 publication-title">Nerfies: Deformable Neural Radiance Fields</h1>
37
- <div class="is-size-5 publication-authors">
38
- <span class="author-block">
39
- <a href="https://keunhong.com" target="_blank">Keunhong Park</a><sup>1</sup>,</span>
40
- <span class="author-block">
41
- <a href="https://utkarshsinha.com" target="_blank">Utkarsh Sinha</a><sup>2</sup>,</span>
42
- <span class="author-block">
43
- <a href="https://jonbarron.info" target="_blank">Jonathan T. Barron</a><sup>2</sup>,
44
- </span>
45
- <span class="author-block">
46
- <a href="http://sofienbouaziz.com" target="_blank">Sofien Bouaziz</a><sup>2</sup>,
47
- </span>
48
- <span class="author-block">
49
- <a href="https://www.danbgoldman.com" target="_blank">Dan B Goldman</a><sup>2</sup>,
50
- </span>
51
- <span class="author-block">
52
- <a href="https://homes.cs.washington.edu/~seitz/" target="_blank">Steven M. Seitz</a><sup>1,2</sup>,
53
- </span>
54
- <span class="author-block">
55
- <a href="http://www.ricardomartinbrualla.com" target="_blank">Ricardo Martin-Brualla</a><sup>2</sup>
56
- </span>
57
- </div>
58
-
59
- <div class="is-size-5 publication-authors">
60
- <span class="author-block"><sup>1</sup>University of Washington,</span>
61
- <span class="author-block"><sup>2</sup>Google Research</span>
62
- </div>
63
-
64
- <div class="column has-text-centered">
65
- <div class="publication-links">
66
- <!-- PDF Link. -->
67
- <span class="link-block">
68
- <a href="https://arxiv.org/pdf/2011.12948" target="_blank"
69
- class="external-link button is-normal is-rounded is-dark">
70
- <span class="icon">
71
- <i class="fas fa-file-pdf"></i>
72
- </span>
73
- <span>Paper</span>
74
- </a>
75
- </span>
76
- <span class="link-block">
77
- <a href="https://arxiv.org/abs/2011.12948" target="_blank"
78
- class="external-link button is-normal is-rounded is-dark">
79
- <span class="icon">
80
- <i class="ai ai-arxiv"></i>
81
- </span>
82
- <span>arXiv</span>
83
- </a>
84
- </span>
85
- <!-- Video Link. -->
86
- <span class="link-block">
87
- <a href="https://www.youtube.com/watch?v=MrKrnHhk8IA" target="_blank"
88
- class="external-link button is-normal is-rounded is-dark">
89
- <span class="icon">
90
- <i class="fab fa-youtube"></i>
91
- </span>
92
- <span>Video</span>
93
- </a>
94
- </span>
95
- <!-- Code Link. -->
96
- <span class="link-block">
97
- <a href="https://github.com/google/nerfies" target="_blank"
98
- class="external-link button is-normal is-rounded is-dark">
99
- <span class="icon">
100
- <i class="fab fa-github"></i>
101
- </span>
102
- <span>Code</span>
103
- </a>
104
- </span>
105
- <!-- Dataset Link. -->
106
- <span class="link-block">
107
- <a href="https://github.com/google/nerfies/releases/tag/0.1" target="_blank"
108
- class="external-link button is-normal is-rounded is-dark">
109
- <span class="icon">
110
- <i class="far fa-images"></i>
111
- </span>
112
- <span>Data</span>
113
- </a>
114
- </div>
115
-
116
- </div>
117
- </div>
118
- </div>
119
- </div>
120
- </div>
121
- </section>
122
-
123
- <section class="hero teaser">
124
- <div class="container is-max-desktop">
125
- <div class="hero-body">
126
- <video id="teaser" autoplay muted loop playsinline height="100%">
127
- <source src="./static/videos/teaser.mp4"
128
- type="video/mp4">
129
- </video>
130
- <h2 class="subtitle has-text-centered">
131
- <span class="dnerf">Nerfies</span> turns selfie videos from your phone into
132
- free-viewpoint
133
- portraits.
134
- </h2>
135
- </div>
136
- </div>
137
- </section>
138
-
139
-
140
- <section class="hero is-light is-small">
141
- <div class="hero-body">
142
- <div class="container">
143
- <div id="results-carousel" class="carousel results-carousel">
144
- <div class="item item-steve">
145
- <video poster="" id="steve" autoplay controls muted loop playsinline height="100%">
146
- <source src="./static/videos/steve.mp4"
147
- type="video/mp4">
148
- </video>
149
- </div>
150
- <div class="item item-chair-tp">
151
- <video poster="" id="chair-tp" autoplay controls muted loop playsinline height="100%">
152
- <source src="./static/videos/chair-tp.mp4"
153
- type="video/mp4">
154
- </video>
155
- </div>
156
- <div class="item item-shiba">
157
- <video poster="" id="shiba" autoplay controls muted loop playsinline height="100%">
158
- <source src="./static/videos/shiba.mp4"
159
- type="video/mp4">
160
- </video>
161
- </div>
162
- <div class="item item-fullbody">
163
- <video poster="" id="fullbody" autoplay controls muted loop playsinline height="100%">
164
- <source src="./static/videos/fullbody.mp4"
165
- type="video/mp4">
166
- </video>
167
- </div>
168
- <div class="item item-blueshirt">
169
- <video poster="" id="blueshirt" autoplay controls muted loop playsinline height="100%">
170
- <source src="./static/videos/blueshirt.mp4"
171
- type="video/mp4">
172
- </video>
173
- </div>
174
- <div class="item item-mask">
175
- <video poster="" id="mask" autoplay controls muted loop playsinline height="100%">
176
- <source src="./static/videos/mask.mp4"
177
- type="video/mp4">
178
- </video>
179
- </div>
180
- <div class="item item-coffee">
181
- <video poster="" id="coffee" autoplay controls muted loop playsinline height="100%">
182
- <source src="./static/videos/coffee.mp4"
183
- type="video/mp4">
184
- </video>
185
- </div>
186
- <div class="item item-toby">
187
- <video poster="" id="toby" autoplay controls muted loop playsinline height="100%">
188
- <source src="./static/videos/toby2.mp4"
189
- type="video/mp4">
190
- </video>
191
- </div>
192
- </div>
193
- </div>
194
- </div>
195
- </section>
196
-
197
-
198
- <section class="section">
199
- <div class="container is-max-desktop">
200
- <!-- Abstract. -->
201
- <div class="columns is-centered has-text-centered">
202
- <div class="column is-four-fifths">
203
- <h2 class="title is-3">Abstract</h2>
204
- <div class="content has-text-justified">
205
- <p>
206
- We present the first method capable of photorealistically reconstructing a non-rigidly
207
- deforming scene using photos/videos captured casually from mobile phones.
208
- </p>
209
- <p>
210
- Our approach augments neural radiance fields
211
- (NeRF) by optimizing an
212
- additional continuous volumetric deformation field that warps each observed point into a
213
- canonical 5D NeRF.
214
- We observe that these NeRF-like deformation fields are prone to local minima, and
215
- propose a coarse-to-fine optimization method for coordinate-based models that allows for
216
- more robust optimization.
217
- By adapting principles from geometry processing and physical simulation to NeRF-like
218
- models, we propose an elastic regularization of the deformation field that further
219
- improves robustness.
220
- </p>
221
- <p>
222
- We show that <span class="dnerf">Nerfies</span> can turn casually captured selfie
223
- photos/videos into deformable NeRF
224
- models that allow for photorealistic renderings of the subject from arbitrary
225
- viewpoints, which we dub <i>"nerfies"</i>. We evaluate our method by collecting data
226
- using a
227
- rig with two mobile phones that take time-synchronized photos, yielding train/validation
228
- images of the same pose at different viewpoints. We show that our method faithfully
229
- reconstructs non-rigidly deforming scenes and reproduces unseen views with high
230
- fidelity.
231
- </p>
232
- </div>
233
- </div>
234
- </div>
235
- <!--/ Abstract. -->
236
-
237
- <!-- Paper video. -->
238
- <div class="columns is-centered has-text-centered">
239
- <div class="column is-four-fifths">
240
- <h2 class="title is-3">Video</h2>
241
- <div class="publication-video">
242
- <iframe src="https://www.youtube.com/embed/MrKrnHhk8IA?rel=0&amp;showinfo=0"
243
- frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
244
- </div>
245
- </div>
246
- </div>
247
- <!--/ Paper video. -->
248
- </div>
249
- </section>
250
-
251
-
252
- <section class="section">
253
- <div class="container is-max-desktop">
254
-
255
- <div class="columns is-centered">
256
-
257
- <!-- Visual Effects. -->
258
- <div class="column">
259
- <div class="content">
260
- <h2 class="title is-3">Visual Effects</h2>
261
- <p>
262
- Using <i>nerfies</i> you can create fun visual effects. This Dolly zoom effect
263
- would be impossible without nerfies since it would require going through a wall.
264
- </p>
265
- <video id="dollyzoom" autoplay controls muted loop playsinline height="100%">
266
- <source src="./static/videos/dollyzoom-stacked.mp4"
267
- type="video/mp4">
268
- </video>
269
- </div>
270
- </div>
271
- <!--/ Visual Effects. -->
272
-
273
- <!-- Matting. -->
274
- <div class="column">
275
- <h2 class="title is-3">Matting</h2>
276
- <div class="columns is-centered">
277
- <div class="column content">
278
- <p>
279
- As a byproduct of our method, we can also solve the matting problem by ignoring
280
- samples that fall outside of a bounding box during rendering.
281
- </p>
282
- <video id="matting-video" controls playsinline height="100%">
283
- <source src="./static/videos/matting.mp4"
284
- type="video/mp4">
285
- </video>
286
- </div>
287
-
288
- </div>
289
- </div>
290
- </div>
291
- <!--/ Matting. -->
292
-
293
- <!-- Animation. -->
294
- <div class="columns is-centered">
295
- <div class="column is-full-width">
296
- <h2 class="title is-3">Animation</h2>
297
-
298
- <!-- Interpolating. -->
299
- <h3 class="title is-4">Interpolating states</h3>
300
- <div class="content has-text-justified">
301
- <p>
302
- We can also animate the scene by interpolating the deformation latent codes of two input
303
- frames. Use the slider here to linearly interpolate between the left frame and the right
304
- frame.
305
- </p>
306
- </div>
307
- <div class="columns is-vcentered interpolation-panel">
308
- <div class="column is-3 has-text-centered">
309
- <img src="./static/images/interpolate_start.jpg"
310
- class="interpolation-image"
311
- alt="Interpolate start reference image."/>
312
- <p>Start Frame</p>
313
- </div>
314
- <div class="column interpolation-video-column">
315
- <div id="interpolation-image-wrapper">
316
- Loading...
317
- </div>
318
- <input class="slider is-fullwidth is-large is-info"
319
- id="interpolation-slider"
320
- step="1" min="0" max="100" value="0" type="range">
321
- </div>
322
- <div class="column is-3 has-text-centered">
323
- <img src="./static/images/interpolate_end.jpg"
324
- class="interpolation-image"
325
- alt="Interpolation end reference image."/>
326
- <p class="is-bold">End Frame</p>
327
- </div>
328
- </div>
329
- <br/>
330
- <!--/ Interpolating. -->
331
 
332
- <!-- Re-rendering. -->
333
- <h3 class="title is-4">Re-rendering the input video</h3>
334
- <div class="content has-text-justified">
335
- <p>
336
- Using <span class="dnerf">Nerfies</span>, you can re-render a video from a novel
337
- viewpoint such as a stabilized camera by playing back the training deformations.
338
- </p>
339
- </div>
340
- <div class="content has-text-centered">
341
- <video id="replay-video"
342
- controls
343
- muted
344
- preload
345
- playsinline
346
- width="75%">
347
- <source src="./static/videos/replay.mp4"
348
- type="video/mp4">
349
- </video>
350
  </div>
351
- <!--/ Re-rendering. -->
352
-
353
  </div>
354
- </div>
355
- <!--/ Animation. -->
356
-
357
-
358
- <!-- Concurrent Work. -->
359
- <div class="columns is-centered">
360
- <div class="column is-full-width">
361
- <h2 class="title is-3">Related Links</h2>
362
-
363
- <div class="content has-text-justified">
364
- <p>
365
- There's a lot of excellent work that was introduced around the same time as ours.
366
- </p>
367
- <p>
368
- <a href="https://arxiv.org/abs/2104.09125" target="_blank">Progressive Encoding for Neural Optimization</a> introduces an idea similar to our windowed position encoding for coarse-to-fine optimization.
369
- </p>
370
- <p>
371
- <a href="https://www.albertpumarola.com/research/D-NeRF/index.html" target="_blank">D-NeRF</a> and <a href="https://gvv.mpi-inf.mpg.de/projects/nonrigid_nerf/" target="_blank">NR-NeRF</a>
372
- both use deformation fields to model non-rigid scenes.
373
- </p>
374
- <p>
375
- Some works model videos with a NeRF by directly modulating the density, such as <a href="https://video-nerf.github.io/" target="_blank">Video-NeRF</a>, <a href="https://www.cs.cornell.edu/~zl548/NSFF/" target="_blank">NSFF</a>, and <a href="https://neural-3d-video.github.io/" target="_blank">DyNeRF</a>
376
- </p>
377
- <p>
378
- There are probably many more by the time you are reading this. Check out <a href="https://dellaert.github.io/NeRF/" target="_blank">Frank Dellart's survey on recent NeRF papers</a>, and <a href="https://github.com/yenchenlin/awesome-NeRF" target="_blank">Yen-Chen Lin's curated list of NeRF papers</a>.
379
- </p>
380
- </div>
381
  </div>
382
  </div>
383
- <!--/ Concurrent Work. -->
384
-
385
- </div>
386
- </section>
387
-
388
-
389
- <section class="section" id="BibTeX">
390
- <div class="container is-max-desktop content">
391
- <h2 class="title">BibTeX</h2>
392
- <pre><code>@article{park2021nerfies,
393
- author = {Park, Keunhong and Sinha, Utkarsh and Barron, Jonathan T. and Bouaziz, Sofien and Goldman, Dan B and Seitz, Steven M. and Martin-Brualla, Ricardo},
394
- title = {Nerfies: Deformable Neural Radiance Fields},
395
- journal = {ICCV},
396
- year = {2021},
397
- }</code></pre>
398
- </div>
399
- </section>
400
-
401
-
402
- <footer class="footer">
403
- <div class="container">
404
- <div class="content has-text-centered">
405
- <a class="icon-link" target="_blank"
406
- href="./static/videos/nerfies_paper.pdf">
407
- <i class="fas fa-file-pdf"></i>
408
- </a>
409
- <a class="icon-link" href="https://github.com/keunhong" target="_blank" class="external-link" disabled>
410
- <i class="fab fa-github"></i>
411
- </a>
412
- </div>
413
- <div class="columns is-centered">
414
- <div class="column is-8">
415
- <div class="content">
416
- <p>
417
- This website is licensed under a <a rel="license" target="_blank"
418
- href="http://creativecommons.org/licenses/by-sa/4.0/">Creative
419
- Commons Attribution-ShareAlike 4.0 International License</a>.
420
- </p>
421
- <p>
422
- This means you are free to borrow the <a target="_blank"
423
- href="https://github.com/nerfies/nerfies.github.io">source code</a> of this website,
424
- we just ask that you link back to this page in the footer.
425
- Please remember to remove the analytics code included in the header of the website which
426
- you do not want on your website.
427
- </p>
428
- </div>
429
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
  </div>
431
  </div>
432
- </footer>
433
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  </body>
435
- </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width,initial-scale=1">
8
+ <link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
9
+
10
+
11
+ <title>CML(Context Mark Language)</title>
12
+
13
+ <style type="text/css">
14
+ /*
15
+ 页面背景色、正文文字主色、线条颜色、代码块背景色
16
+ */
17
+ :root {
18
+ --color-bg: #282c34;
19
+ --color-text: #fff;
20
+ --color-line:#544c48;
21
+ --color-code-bg: #f6f8fa33;
22
+ }
23
+ /* :root {
24
+ --color-bg: #fff;
25
+ --color-text: #000;
26
+ --color-line:#ddd;
27
+ --color-code-bg: #b6b8ba33;
28
+ } */
29
+
30
+ body {
31
+ padding: 5vh 20vw;
32
+ color: var(--color-text);
33
+ background-color: var(--color-bg);
34
+ }
35
+ .topnav{
36
+ display: flex;
37
+ justify-content: space-between;
38
+ }
39
+ h1{
40
+ font-size:48px;
41
+ }
42
+
43
+ img{
44
+ max-width: 100%; /* 图片最大宽度不超过容器 */
45
+ height: auto; /* 高度自动按比例缩放 */
46
+ }
47
+ a {
48
+ color: var(--color-text);
49
+ }
50
+ code {
51
+ background-color: var(--color-code-bg);
52
+ padding: 0.2em 0.4em;
53
+ border-radius: 4px;
54
+ font-family: Consolas, Monaco, 'Courier New', monospace;
55
+ font-size: 90%;
56
+ }
57
+ pre {
58
+ background-color: var(--color-code-bg);
59
+ padding: 1em;
60
+ border-radius: 6px;
61
+ overflow: auto;
62
+ font-size: 14px;
63
+ line-height: 1.5;
64
+ white-space: pre-wrap;
65
+ word-wrap: break-word;
66
+ }
67
+
68
+ pre code {
69
+ background: none;
70
+ font-size: 100%;
71
+ padding: 0;
72
+ border-radius: 0;
73
+ font-family: Consolas, Monaco, 'Courier New', monospace;
74
+ }
75
+ pre code code{
76
+ background: none;
77
+ font-size: 100%;
78
+ padding: 0;
79
+ border-radius: 0;
80
+ font-family: Consolas, Monaco, 'Courier New', monospace;
81
+ }
82
+ </style>
83
+ <style>
84
+ .language-menu {
85
+ display: inline-block;
86
+ position: relative;
87
+ font-size: 14px;
88
+ }
89
+ .current-language {
90
+ cursor: pointer;
91
+ user-select: none;
92
+ }
93
+ .language-popup {
94
+ display: none;
95
+ position: absolute;
96
+ top: 100%;
97
+ left: 0;
98
+ background: var(--color-text);
99
+ color:var(--color-bg);
100
+ padding: 4px;
101
+ box-shadow: 0 2px 8px rgba(0,0,0,0.15);
102
+ white-space: nowrap;
103
+ z-index: 100;
104
+ }
105
+ .language-line{
106
+ margin:10px;
107
+ }
108
+ .language-popup a {
109
+ display: block;
110
+ color: #000;
111
+ text-decoration: none;
112
+ margin: 2px 0;
113
+ }
114
+ .language-popup a:hover {
115
+ text-decoration: underline;
116
+ }
117
+ </style>
118
+ <style>
119
+ .logo {
120
+ border: 3px solid #fff;
121
+ border-radius: 150px;
122
+ padding: 4px;
123
+ width: 150px;
124
+ height: 150px
125
+ }
126
+ .line{
127
+ display: flex;
128
+ align-items: center;
129
+ gap: 4px;
130
+ }
131
+ .icon{
132
+ width: 28px;
133
+ height: 28px;
134
+ }
135
+ .red{
136
+ color:red;
137
+ }
138
+ .blue{
139
+ color:blue;
140
+ }
141
+ .green{
142
+ color:green;
143
+ }
144
+ #tabs {
145
+ display: flex;
146
+ list-style: none;
147
+ padding: 0;
148
+ border-bottom: 1px solid var(--color-line);
149
+ align-items: center;
150
+ margin-top:30px;
151
+ }
152
+ #tabs li {
153
+ padding: 10px 20px;
154
+ cursor: pointer;
155
+ font-size:20px;
156
+ border-bottom: none;
157
+ margin-right: 5px;
158
+
159
+ }
160
+ #tabs li.active {
161
+ font-weight: bold;
162
+ font-size:24px;
163
+ background-color: var(--color-code-bg);
164
+ }
165
+ .tab-pane {
166
+ display: none;
167
+ padding: 20px;
168
+ min-height: 300px;
169
+ width:100%;
170
+ min-width: 100%;
171
+ }
172
+ .tab-pane.active {
173
+ display: block;
174
+ }
175
+ </style>
176
  </head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
+ <body>
179
+ <div id="app">
180
+ <div class="topnav">
181
+ <div class="language-menu">
182
+ <div class="current-language">English ▾</div>
183
+ <div class="language-popup" style="display: none;">
184
+ <div class="language-line"><a href="../CML">简体中文</a></div>
185
+ <!-- 如果当前是中文页面,也可反向加一行跳英文 -->
186
+ <div class="language-line">English <span style="color:#999;">(current)</span></div>
 
 
 
 
 
 
 
 
 
187
  </div>
 
 
188
  </div>
189
+ <div class="line">
190
+ <span>
191
+ <a href="https://github.com/ContextMark/CML" target="_blank" style="display: inline-flex; align-items: center; gap: 0.4em;">
192
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
193
+ <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54
194
+ 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38
195
+ 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52
196
+ -.01-.53.63-.01 1.08.58 1.23.82.72 1.21
197
+ 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78
198
+ -.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15
199
+ -.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6
200
+ 7.6 0 0 1 2-.27c.68 0 1.36.09 2 .27 1.53-1.04
201
+ 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56
202
+ .82 1.27.82 2.15 0 3.07-1.87 3.75-3.65
203
+ 3.95.29.25.54.73.54 1.48 0 1.07-.01
204
+ 1.93-.01 2.2 0 .21.15.46.55.38A8.013
205
+ 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
206
+ </svg>
207
+ </a>
208
+ </span>
209
+ <span>
210
+ <a href="https://doc-war.com" target="_blank" style="display: inline-flex; align-items: center; gap: 0.4em;">
211
+ <img src="../logo.png" class="icon">
212
+ </a>
213
+ </span>
 
 
214
  </div>
215
  </div>
216
+ <div class="content">
217
+ <section >
218
+ <h1>CML</h1>
219
+ <p>Context Mark Language (CML) is a new markup architecture designed for the AI era, addressing the needs of contextual markup with a structure that aligns with natural semantics.</p>
220
+ <p>The core feature of the Context Mark Language syntax is its use of a single string to represent multi-dimensional, composable, and implicitly contextual semantic structures. It offers a simpler experience for writing, embedding, transmitting, storing, and computing.</p>
221
+ <h2>Paper</h2>
222
+ <p>CML elaborates on the Context Structure Expression model. For details, refer to the paper:</p>
223
+ <ul>
224
+ <li>
225
+ <a href="https://doi.org/10.5281/zenodo.15255534">DOI 10.5281/zenodo.15255534.</a>
226
+ </li>
227
+ <li>
228
+ English version:<a href="https://github.com/ContextMark/CML/blob/main/paper/CSE.md">CSE:A Unified Modeling Framework for Semantic Contextual Markup</a>
229
+ </li>
230
+ <li>
231
+ Chinese version:<a href="https://github.com/ContextMark/CML/blob/main/paper/CSE_zh.md">CSE模型:上下文语义标记的统一建模框架</a>
232
+ </li>
233
+ </ul>
234
+ </section >
235
+ <ul id="tabs">
236
+ <li class="active" data-tab="tab1">Semantic Architecture</li>
237
+ <li data-tab="tab2">Semantic Structure</li>
238
+ <li data-tab="tab3">Encoding Rules</li>
239
+ <li data-tab="tab4">Minimal Completeness</li>
240
+ </ul>
241
+
242
+ <section id="tab1" class="tab-pane active">
243
+ <!-- <h2>1. Semantic Architecture</h2> -->
244
+ <p>Context Mark Language can express semantic contextual structures in an extremely concise way.</p>
245
+ <p>The CML string, used to mark knowledge contexts, is composed of a series of two types of <code>semantic primitives</code>: <code>semantic tokens</code> and <code>relation separators</code>.</p>
246
+ <ul>
247
+ <li><strong>Semantic Token</strong>: The basic unit for describing contextual semantics in CML. It can be any form of text fragment. It corresponds to the concept of a token in the LLM domain, but it is not lexical in nature—instead, it carries abstract dimensions of natural semantics.</li>
248
+ <li><strong>Relation Separator</strong> (<code>:</code>, <code>.</code>, <code>@</code>, <code>+</code>, <code>space</code>): Used to express the semantic relationships of contextual structure between semantic tokens. It implicitly declares the weighted prioritization of these relationships.</li>
249
+ </ul>
250
+ <p>By freely combining these semantic primitives and encoding them, a complete CML string is formed.</p>
251
+ <img src="./assets/image-20250418171524138.png" alt="Encoding Format Diagram">
252
+ <h3>Expression Rules</h3>
253
+ <p>CML uses a linear structure to describe semantic relationships (which is easy to embed).</p>
254
+ <p>Assuming we use <code>&lt;semantic_token&gt;</code> to represent a semantic token and <code>&lt;separator&gt;</code> to represent a relation separator, the rules can be roughly defined as follows:</p>
255
+ <ol>
256
+ <li>Each <strong>semantic token</strong> (<code>&lt;semantic_token&gt;</code>) must be connected by one and only one <strong>relation separator</strong> (<code>&lt;separator&gt;</code>).</li>
257
+ <li>Semantic tokens and relation separators always appear in an alternating pattern: <code>&lt;semantic_token&gt;&lt;separator&gt;&lt;semantic_token&gt;&lt;separator&gt;...&lt;semantic_token&gt;</code>.</li>
258
+ </ol>
259
+ </section>
260
+
261
+ <section id="tab2" class="tab-pane">
262
+ <!-- <h2>2. Semantic Structure</h2> -->
263
+ <p>CML revolves around three core semantic needs—<strong>priority expression</strong> of tokens, <strong>structural extensibility</strong>, and <strong>logical orthogonality</strong>. From these, five highly expressive and composable semantic structure primitives are abstracted, forming the fundamental units for constructing all logical semantic relationships.</p>
264
+ <p>These five structural primitives are categorized into <code>Basic Structures</code>, <code>Composite Structures</code>, and <code>Combinatorial Structures</code>. Basic structures describe simple relationships among semantic tokens and can serve as components of composite structures. Combinatorial structures are higher-level containers that can connect any semantic tokens, basic structures, or composite structures.</p>
265
+
266
+ <h3>a. Supplementary Relationship</h3>
267
+ <p><span class="red">Basic Structure</span>. The semantic object on the right supplements, explains, or restricts the one on the left. It usually acts as a semantic addition without altering the original structure.</p>
268
+ <pre><code>f:A∋B∋C</code></pre>
269
+ <p>Expressed using the <code>@</code> symbol. The further left, the higher the priority, indicating greater weight.</p>
270
+ <p>For example:</p>
271
+ <ul>
272
+ <li><code>name</code>@<code>identity</code>@<code>organization</code></li>
273
+ <li><code>name</code>@<code>company</code>@<code>position</code></li>
274
+ </ul>
275
+ <p>Both highlight "name" first, but declare different priority emphases overall.</p>
276
+
277
+ <h3>b. Linear Progression Relationship</h3>
278
+ <p><span class="red">Basic Structure</span>. An ordered, stepwise semantic relationship. It can express directional flows like progression, transformation chains, causal chains, sequences, type refinement, or lifecycles.</p>
279
+ <pre><code>f:A→B→C</code></pre>
280
+ <p>Expressed with the <code>.</code> symbol. Whether the left side has slightly higher weight depends on LLM interpretation based on actual semantic tokens.</p>
281
+ <p>For example:</p>
282
+ <ul>
283
+ <li><code>Organism</code>.<code>Animal</code>.<code>Human</code> — focuses on the subclass <code>Human</code>.</li>
284
+ <li><code>Product Design</code>.<code>Development</code>.<code>Operations</code> — the semantic tokens clearly describe a lifecycle.</li>
285
+ </ul>
286
+
287
+ <h3>c. Parallel Set Relationship</h3>
288
+ <p><span class="red">Basic Structure</span>. Multiple semantic elements in parallel, like a set, property group, or multi-branch description. No priority or order; elements can be rearranged freely.</p>
289
+ <pre><code>f:{A, B, C}</code></pre>
290
+ <p>Expressed with the <code>+</code> symbol. No priority difference in weight.</p>
291
+ <p>For example:</p>
292
+ <ul>
293
+ <li><code>Man</code>+<code>Woman</code> — both equally describe the concept of <code>Human</code>.</li>
294
+ <li><code>Name</code>+<code>Age</code>+<code>Username</code> — registration attributes of an account.</li>
295
+ </ul>
296
+
297
+ <h3>d. Mapping Relationship</h3>
298
+ <p>A <span class="blue">composite</span> correspondence between one semantic structure and another, in key-value form. Both sides can use any combination of the three basic relationships to support two-dimensional semantic expression.</p>
299
+ <pre><code>f(A,B) ↦ f(C,D,E)</code></pre>
300
+ <p>Expressed with the <code>:</code> symbol. It's like a key-value pair, but more flexible—both key and value can be basic structures, not just semantic tokens.</p>
301
+ <pre><code>&lt;key-context-struct&gt;:&lt;value-context-struct&gt;</code></pre>
302
+ <p>Examples of valid mapping structures:</p>
303
+ <ul>
304
+ <li><code>Website</code>:<code>doc-war.com</code></li>
305
+ <li><code>Website</code>@<code>doc-war.com</code>:<code>Document Battlefield</code>@<code>Contribute Judgment Value</code></li>
306
+ <li><code>AI</code>+<code>LLM</code>:<code>ChatGPT</code>+<code>Claude</code>@<code>v3.7</code></li>
307
+ <li><code>ask</code>.<code>answer</code>: <code>What is CML?</code>.<code>CML is a semantic structure language aligned with natural semantics</code></li>
308
+ </ul>
309
+
310
+ <h5>Special Constraint</h5>
311
+ <p>CML <strong>does not support nested mappings</strong> to avoid increasing parsing complexity. For example, expressions like <code>User:ZhangSan:Delete+Query</code> are syntactically invalid.</p>
312
+
313
+ <h3>e. Combination Relationship</h3>
314
+ <p>Multiple semantic structures <span class="green">combine</span> into a new semantic whole without losing their original meaning. Conversely, they can also be decomposed. Essentially, this acts as a "semantic structure container" capable of computation.</p>
315
+ <pre><code>
316
+ f(A)+f(B) = f(A+B)
317
+ f(A) = f(A+B) - f(B)
318
+ </code></pre>
319
+ <p>Expressed using a <code>space</code>, which overlays two structures semantically.</p>
320
+ <p>Because <code>space</code> has the lowest semantic precedence and is not order-sensitive, it's also used as the overall operator in plaintext CML strings. Concatenating two CML strings with a space produces a valid CML string that retains original semantics.</p>
321
+ <pre><code>plaintext(A)+space+plaintext(B) = plaintext(A+space+B)</code></pre>
322
+ <p>This feature of <strong>lossless restoration</strong>—free combination and decomposition—gives CML semantic computation properties, not just semantic expression. It lays a solid foundation for collaborative annotation workflows.</p>
323
+
324
+ <h5>Special Constraint</h5>
325
+ <p>Because <code>space</code> carries the responsibility of lossless computation, expressions like <code>If User:ZhangSan how about</code>, while syntactically valid, violate the principle of lossless combination. Once split and recombined, the position shift disrupts the original meaning.</p>
326
+
327
+ <h3>Operator Precedence</h3>
328
+ <p>Relationship operations work similarly to expression parsing in programming languages: a left-to-right lexical scan determines the semantic operation order based on the precedence of relation separators.</p>
329
+ <p>CML defines a clear precedence to ensure consistency in semantic interpretation during annotation and inference.</p>
330
+ <pre><code>Supplementary Relationship<sup>a</sup> > Linear Progression Relationship<sup>b</sup> > Parallel Set Relationship<sup>c</sup> > Mapping Relationship<sup>d</sup> > Combination Relationship<sup>e</sup></code></pre>
331
+ </section>
332
+
333
+ <section id="tab3" class="tab-pane">
334
+ <!-- <h2>3. Encoding Rules</h2> -->
335
+ <p>Based on semantic expression, two standard CML string patterns are defined. The core difference lies in the stage and form used to mark the semantic token (semantic_token) itself.</p>
336
+ <p><img src="./assets/image-20250421172935286.png" alt="Encoding Rules Diagram"></p>
337
+
338
+ <h3>Natural Language Format</h3>
339
+ <p>The natural language format is designed for a <code>plain text editing</code> experience for document engineers, suitable for human-readable scenarios.</p>
340
+ <p>It uses the backtick marker (inline code) from <strong>Markdown syntax</strong>[15] to wrap semantic tokens (semantic_token). Document engineers can use WYSIWYG Markdown editors as a plain text editing environment for semantic structures, which is highly efficient and intuitive.</p>
341
+ <p>For example, writing a plain text string in Markdown:</p>
342
+ <pre><code>`token1`.`token2`@`token3`+`token4` `token5`:`token6`</code></pre>
343
+ <p>This can be rendered in real-time into the following natural semantic effect, clear at a glance:</p>
344
+ <p><code>token1</code>.<code>token2</code>@<code>token3</code>+<code>token4</code> <code>token5</code>:<code>token6</code></p>
345
+
346
+ <h3>Encoding Format</h3>
347
+ <p>CML strings with backticks <code>`</code>, including delimiters, may introduce unexpected parsing boundaries and escaping requirements in certain special scenarios.</p>
348
+ <p>Therefore, for <code>embedding</code>, <code>storage</code>, <code>parsing</code>, and <code>computation</code> scenarios, CML defines a safer and more consistent encoded output format.</p>
349
+ <p><img src="./assets/image-20250418171524138.png" alt="Encoding Format Diagram"></p>
350
+ <p>Example:</p>
351
+ <pre><code>`token1`.`token2`@`token3`+`token4` `token5`:`token6`</code></pre>
352
+ <p>The above plain text CML string is encoded in the following order:</p>
353
+ <ol>
354
+ <li>Sequentially extract <code>semantic tokens</code> and <code>relationship delimiters</code> from the original CML string.</li>
355
+ <li>Encode each semantic token (excluding the backticks) into a byte stream using UTF-8, then perform <strong>Base58 encoding</strong>[16] on the byte stream to generate a Base58 string.</li>
356
+ </ol>
357
+ <pre><code>
358
+ token1 → encode → zyvFCwFv
359
+ token2 → encode → zyvFCwFw
360
+ token3 → encode → zyvFCwFx
361
+ token4 → encode → zyvFCwFy
362
+ token5 → encode → zyvFCwFz
363
+ token6 → encode → zyvFCwG1
364
+ </code></pre>
365
+ <ol start="3">
366
+ <li>Reassemble using the original relationship delimiters (this process essentially replaces the backtick wrapping with Base58).</li>
367
+ </ol>
368
+ <pre><code>zyvFCwFv.zyvFCwFw@zyvFCwFx+zyvFCwFy zyvFCwFz:zyvFCwG1</code></pre>
369
+ <ol start="4">
370
+ <li>Finally, perform UTF-8+Base58 encoding again on the entire string to eliminate all special characters.</li>
371
+ </ol>
372
+ <pre><code>3EkzyE8r5SqnU6KSbLS98LVLJxFoNvskzaazkuEEryWminqaGwJz13YoatvfoRWoDyrofwUCQ</code></pre>
373
+
374
+ <h3>Line Breaks and Multiple Spaces</h3>
375
+ <p>In natural editing, especially in long-context tagging scenarios, humans may prefer to split long strings with line breaks for readability rather than strictly using spaces. Therefore, the CML editor should support symbol equivalence, automatically converting various line break symbols like <code>\n</code>, <code>\r\n</code>, and <code>\r</code> to a <code>space</code> symbol during parsing and storage of plain text format.</p>
376
+ <p>Similarly, in human editing scenarios, users may want to insert multiple spaces in a single line to enhance the visual clarity of structural separation. The CML editor should also support this equivalence.</p>
377
+ <p>Before Base58 encoding, <code>line breaks</code> and excessive <code>spaces</code> should be explicitly eliminated and uniformly converted to a <code>single space</code> symbol.</p>
378
+ </section>
379
+
380
+ <section id="tab4" class="tab-pane">
381
+ <!-- <h2>4. Minimal Completeness</h2> -->
382
+ <p>The five relationship delimiters are derived from an abstract refinement of the semantic expression structures in natural language, as well as a deep consideration of expression ambiguity and structural controllability.</p>
383
+
384
+ <h3>Natural Language Reference</h3>
385
+ <p>The five relationship delimiters defined by CML are based on the most fundamental semantic structures implicit in natural language (<strong>modification</strong>, <strong>succession</strong>, <strong>parallel</strong>, <strong>contrast</strong>, <strong>combination</strong>). These five semantic structures are independent of the grammatical expression styles of specific natural languages such as Chinese, English, French, or Japanese.</p>
386
+ <pre><code>
387
+ Natural Language Examples:
388
+ Example: The <code>man</code><sup>A</sup> who is <code>tall</code><sup>B</sup> and <code>wearing a hat</code><sup>C</sup> (A←B←C)
389
+ Example: He <code>gets up</code><sup>A</sup>, <code>dresses</code><sup>B</sup>, and <code>goes out</code><sup>C</sup> (A→B→C)
390
+ Example: I like <code>apples</code><sup>A</sup>, <code>bananas</code><sup>B</sup>, and <code>oranges</code><sup>C</sup> {A, B, C}
391
+ Example: <code>ChatGPT</code><sup>A</sup>, <code>Claude</code><sup>B</sup>, and <code>DeepSeek</code><sup>C</sup> are all <code>AI</code><sup>D</sup>, also called <code>LLM</code><sup>E</sup>
392
+ (A+B+C ↦ D+E)
393
+ Example: <code>This flower</code><sup>A</sup> + <code>is beautiful</code><sup>B</sup> = <code>This flower is beautiful</code><sup>A+B</sup>
394
+ (A+B=AB)
395
+ </code></pre>
396
+ <p>In theory, the combination of these five primitive relationships can express the vast majority of logical relationships, offering considerable completeness.</p>
397
+
398
+ <h3>Semantics Within Tokens</h3>
399
+ <p>For logical relationships such as exclusion, quantifier ranges, or nested mappings, CML does not provide native support. Instead, these are delegated to the token layer, allowing flexible expression in conjunction with <code>supplementary relationships</code> to avoid structural pollution, which could introduce complexity in priority operations and human-readable comprehension.</p>
400
+ <p>This is because tokens themselves can also express structure.</p>
401
+ <pre><code>
402
+ Natural Language Example: "His <code>age</code> is approximately <code>18~25 years old</code>."
403
+ Annotation:
404
+ ❌ `age`:`range`:`18-25`
405
+ (Illegal nesting and unnecessary, can be merged forward or backward)
406
+ ❌ `age`:`>18`+`<25`
407
+ (No need to split so finely)
408
+ ✅ `age`:`range:18-25`
409
+ (Nesting within the token aligns with natural semantics)
410
+ ✅ `age`:`18-25`
411
+ </code></pre>
412
+
413
+ <p>This reflects the <strong>principle of minimalism</strong> in structure:</p>
414
+ <p>The CSE paradigm does not attempt to explicitly resolve all structural semantic ambiguities in advance. Instead, during actual expression, it leverages the semantic tokens connected by relationship delimiters as the context for relational semantics, allowing the LLM to infer the most reasonable semantic relationships and corresponding priority weights.</p>
415
+
416
+ <h3>Core Value of Explicit Structure</h3>
417
+ <p>Advocating the use of semantic structure expression within tokens also reflects the core value of CML in explicit encoding.</p>
418
+ <p>The reason CML is close to natural language but not equivalent to pure natural language lies in its necessity for declaring important semantics and its expressive requirements. Compared to the complete uncontrollability of token segmentation in natural language inference, the essence of explicit segmentation is to break down semantics into vertical hierarchies and horizontal relationships, thereby eliminating relational ambiguities and ultimately enhancing controllability and interpretability.</p>
419
+ </section>
420
  </div>
421
  </div>
 
422
 
423
+ <script>
424
+ // 处理tab切换
425
+ const tabs = document.querySelectorAll('#tabs li');
426
+ const panes = document.querySelectorAll('.tab-pane');
427
+
428
+ tabs.forEach(tab => {
429
+ tab.addEventListener('click', () => {
430
+ tabs.forEach(t => t.classList.remove('active'));
431
+ panes.forEach(p => p.classList.remove('active'));
432
+ tab.classList.add('active');
433
+ document.getElementById(tab.dataset.tab).classList.add('active');
434
+ });
435
+ });
436
+
437
+ //跨页面处理语言跳转
438
+ const current = document.querySelector('.current-language');
439
+ const popup = document.querySelector('.language-popup');
440
+
441
+ current.addEventListener('click', () => {
442
+ popup.style.display = popup.style.display === 'none' ? 'block' : 'none';
443
+ });
444
+
445
+ document.addEventListener('click', (e) => {
446
+ if (!e.target.closest('.language-menu')) {
447
+ popup.style.display = 'none';
448
+ }
449
+ });
450
+
451
+ </script>
452
+ <!-- <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"></script> -->
453
  </body>
454
+ </html>