-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.template.html
431 lines (395 loc) · 15.2 KB
/
index.template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap.min.css" rel="stylesheet" />
<meta name="twitter:card" content="summary_large_image" />
<!-- anon-on -->
<meta name="twitter:site" content="@GoogleAI" />
<!-- anon-off -->
<meta name="twitter:title" content="{{ twitter_title }}" />
<meta name="twitter:description" content="{{ twitter_desc }}" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css" />
<script src="jquery.min.js"></script>
<script src="jquery.flip.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SMWK19DNCN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SMWK19DNCN');
</script>
<title>{{ website_title }}</title>
</head>
<body>
<div id="gallery0" style="padding-top: 50px; padding-bottom: 20px; background-color: rgb(245,245,245);">
<h2 style="text-align: center;">{{ paper_title1 }}</h2>
{% if paper_title2 is defined %}
<h2 style="text-align: center;">{{ paper_title2 }}</h2>
{% endif %}
<!-- anon-on -->
<div class="authors text-center">
<div class="row">
<div class="col">
<a href="https://wenhuchen.github.io/">Wenhu Chen</a><sup>*</sup>
</div>
<div class="col">
<a href="https://www.hexianghu.com/">Hexiang Hu</a><sup>*</sup>
</div>
<div class="col">
<a href="https://cold-winter.github.io/">Yandong Li</a>
</div>
<div class="col">
<a href="https://natanielruiz.github.io/">Nataniel Ruiz</a>
</div>
<div class="col">
<a href="https://scholar.google.com/citations?user=vO0VSSYAAAAJ&hl=en">Xuhui Jia</a>
</div>
<div class="col">
<a href="https://mingweichang.org/">Ming-Wei Chang</a>
</div>
<div class="col">
<a href="http://www.cs.cmu.edu/~wcohen/">William W. Cohen</a>
</div>
</div>
<div class="row mt-1">
<div class="col text-small">(*: Core Contribution)</div>
</div>
<div class="row mt-2">
<div class="col">
<img src="assets/GoogleResearch.svg" alt="Google Research" height=50>
</div>
</div>
<div class="row nomobile">
<center><a href="{{ paper_url }}" target="_blank"><img class="thumbnail" src="assets/paper_thumbnail.png"></a></center>
</div>
</div>
<!-- anon-off -->
</div>
<div class="header_dark_gray text-center">
<h2>SuTI is an <i>in-context</i> subject-driven text-to-image generator that draws subject-specific images <i>without fine-tuning</i></h2>
</div>
<div class="abstract">
<div class="inside">
<p class="text">
{{ paper_abstract }}
</p>
<!-- anon-on -->
<a class="read-paper" href="{{ paper_url }}" target="_blank"><button>Research Paper</button></a>
<!-- anon-off -->
</div>
</div>
<div class="header_dark_gray text-center">
<h2>Zero-shot subjec-specific generations on the DreamBench-v2</h2>
<h8>Given a few demonstrations from the users, SuTI is able to generate subject-specific images instantly (~ 20-30 seconds on TPUv4), and without fine-tuning</h8>
</div>
<div class="image_8" id="gallery1">
<div class="flipcard" id="fig0">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig1">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img />
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig2">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig3">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig4">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig5">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig6">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
<div class="flipcard nomobile" id="fig7">
<div class="front">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
<div class="back">
<figure>
<img>
<figcaption class="subject_title"><span style="color: #c994c7">Subject Images</span>:</figcaption>
<div class="subject"></div>
<figcaption class="description"></figcaption>
</figure>
</div>
</div>
</div>
<div class="header_dark_gray text-center">
<h2>SuTI behaves adaptively as the # of in-context examples increases</h2>
<h8>When # of in-context examples = 0, SuTI generates its text-only prior;</h8> <br/>
<h8>When # of in-context examples = 1, SuTI behaves similar to image editing model;</h8> <br/>
<h8>When # of in-context examples > 1, SuTI generates novel poses/views of the subject.</h8>
</div>
<div class="row mt-4 mb-4">
<img src="assets/kshot_study.jpg" class="figure_image">
</div>
<div class="header_dark_gray text-center">
<h2>SuTI not only re-contextualizes subject images but can <i>compose multiple transformations</i> together</h2>
</div>
<div class="row mt-4 mb-4">
<img src="assets/compose_transformation.jpg" class="figure_image">
</div>
<div class="header_dark_gray text-center">
<h2>SuTI has a set of diverse skills in generating high-quality subject-specific images</h2>
<h8>In addition to re-contextualize, SuTI can accessorize, stylize, colorize and synthesize novel view for subject-specific images</h8>
</div>
<div class="row mt-2 mb-2">
<img src="assets/accessory.jpg" class="figure_image">
</div>
<div class="row mt-2 mb-2">
<img src="assets/style.jpg" class="figure_image">
</div>
<div class="row mt-2 mb-2">
<img src="assets/color.jpg" class="figure_image">
</div>
<div class="row mt-2 mb-2">
<img src="assets/multiview.jpg" class="figure_image">
</div>
<div class="header_dark_gray text-center">
<h2>Failure modes of the SuTI</h2>
<h8>SuTI often fails when subject appearance deviates too much from its prior, or when the text depicts rare visual scene</h8>
</div>
<div class="row mt-4 mb-4">
<img src="assets/failure.png" class="figure_image">
</div>
<!-- anon-on -->
<div class="header_dark_gray text-center">
<h2>Cite us using the following BibTex</h2>
</div>
<div class="abstract">
<div class="inside">
<pre>
<code>
@article{chen2023suti,
title={Subject-driven Text-to-Image Generation via Apprenticeship Learning},
author={Chen, Wenhu and Hu, Hexiang and Li, Yandong and Ruiz, Nataniel
and Jia, Xuhui and Chang, Ming-Wei and Cohen, William W},
journal={arXiv preprint arXiv:2304.00186},
year={2023},
}
</code>
</pre>
</div>
</div>
<div class="content">
<h1>Special Thanks</h1>
<p class="smaller" style="text-align: justify;">{{ acknowledgement }}</p>
</div>
<!-- anon-off -->
<script type="text/javascript">
gallery_images = [
{% for item in gallery %}
{
"src": "{{ item.src }}",
"description": "<span style='color: #dd1c77'>Text</span>: {{ item.description }}",
"subjects": "<img class='subject_image' src='{{ item.src[:-5] }}/gt1.jpg'/> <img class='subject_image' src='{{ item.src[:-5] }}/gt2.jpg'/> <img class='subject_image' src='{{ item.src[:-5] }}/gt3.jpg'/> <img class='subject_image' src='{{ item.src[:-5] }}/gt4.jpg'/>"
},
{% endfor %}
];
lastCardFlippedIdx = {
gallery1: -1,
};
lastCardFlippedLastSwapTime = {
gallery1: -1,
};
$(".flipcard").flip({
trigger: "manual",
reverse: false,
});
function checkIfImageIsVisible(name, image) {
numCards = $(name + " .flipcard:visible").size();
for (var cardIdx = 0; cardIdx < numCards; ++cardIdx) {
var isFlipped = $(name + " #fig" + cardIdx).data("flip-model").isFlipped;
if (!isFlipped) {
src = $(name + " #fig" + cardIdx + " div.front figure img").attr("src")
} else {
src = $(name + " #fig" + cardIdx + " div.back figure img").attr("src")
}
if (image.src == src) {
return true;
}
}
return false;
}
function getNextImage(name) {
// different galleries have different sources of imagery.
img_src = gallery_images;
while (true) {
randomImageIdx = Math.floor(Math.random() * img_src.length);
if (!checkIfImageIsVisible(name, img_src[randomImageIdx])) {
return img_src[randomImageIdx];
}
}
}
function randomSwapImageWithId(name, randomCardIdx) {
numCards = $(name + " .flipcard:visible").size();
image = getNextImage(name);
const d = new Date();
let currentTime = d.getTime();
lastCardFlippedIdx[name] = randomCardIdx;
lastCardFlippedLastSwapTime[name] = currentTime;
var isFlipped = $(name + " #fig" + randomCardIdx).data("flip-model").isFlipped;
if (!isFlipped) {
$(name + " #fig" + randomCardIdx + " div.back figure img").attr("src", image.src)
$(name + " #fig" + randomCardIdx + " div.back figure figcaption.description").html(image.description)
$(name + " #fig" + randomCardIdx + " div.back figure div.subject").html(image.subjects)
} else {
$(name + " #fig" + randomCardIdx + " div.front figure img").attr("src", image.src)
$(name + " #fig" + randomCardIdx + " div.front figure figcaption.description").html(image.description)
$(name + " #fig" + randomCardIdx + " div.front figure div.subject").html(image.subjects)
}
$(name + " #fig" + randomCardIdx).flip("toggle");
}
function randomSwapImage(name) {
numCards = $(name + " .flipcard:visible").size();
const d = new Date();
if (d.getTime() - lastCardFlippedIdx[name] < 5000) {
setTimeout(randomSwapImage, 1000, name);
return;
}
do {
randomCardIdx = Math.floor(Math.random() * numCards);
if (numCards == 1) {
break;
}
} while (randomCardIdx == lastCardFlippedIdx[name]);
randomSwapImageWithId(name, randomCardIdx);
setTimeout(randomSwapImage, 3000, name);
}
function setupGallery1(id) {
randomSwapImageWithId("#gallery1", id);
$("#gallery1 #fig" + id).click(
function() {
randomSwapImageWithId("#gallery1", id);
}
);
}
for (id = 0; id < 8; id ++) {
setupGallery1(id);
}
setTimeout(randomSwapImage, 1000, "#gallery1");
</script>
<script src="bootstrap.bundle.min.js"></script>
</body>
</html>