forked from m-niemeyer/m-niemeyer.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.py
267 lines (242 loc) · 13.9 KB
/
build.py
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
from pybtex.database.input import bibtex
def get_personal_data():
name = ["Stefano", "Esposito"]
email = "[email protected]"
twitter = "StefanoEsp"
github = "s-esposito"
linkedin = "stefanoesposito97"
bio_text = f"""
<p>I am a PhD student at the <a href="https://uni-tuebingen.de/en/">University of Tübingen</a>, part of <a href="https://uni-tuebingen.de/en/fakultaeten/mathematisch-naturwissenschaftliche-fakultaet/fachbereiche/informatik/lehrstuehle/autonomous-vision/home/">Autonomous Vision Group</a> headed by <a href="https://www.cvlibs.net/">Prof. Andreas Geiger</a>.</p>
<p>
<span style="font-weight: bold;">Research:</span>
I am particularly interested in 3D computer vision topics leveraging coordinate-based neural networks (neural fields). Such methods parameterize the physical properties of scenes or objects in space and time, and have been successfully applied to problems such as novel view synthesis, 3D reconstruction, pose estimation and animations.
</p>
<p>
<span style="font-weight: bold;">Bio:</span>
I've obtained a bachelor's degree in computer science and a master's degree in "artificial intelligence and robotics" at the <a href="https://www.uniroma1.it/en/pagina-strutturale/home">University of Rome "La Sapienza"</a>. During and after my master I have been an Erasmus student and a full-time research associate at the <a href="https://www.h-brs.de/en">Hochschule Bonn-Rhein-Sieg</a> in Bonn, Germany. I see myself as an educated programmer and a true technology enthusiast; in my spare time I enjoy learning new things, traveling, and keeping up to date with what is happening in the world. I love connecting with nature by hiking in the mountains.
</p>
<p>For any inquiries, feel free to reach out!</p>
<p>
<a href="https://s-esposito.github.io/assets/pdf/Stefano_Esposito_CV.pdf" target="_blank" style="margin-right: 15px"><i class="fa fa-address-card fa-lg"></i> CV</a>
<a href="mailto:[email protected]" style="margin-right: 15px"><i class="far fa-envelope-open fa-lg"></i> Mail</a>
<a href="https://twitter.com/StefanoEsp" target="_blank" style="margin-right: 15px"><i class="fab fa-twitter fa-lg"></i> Twitter</a>
<a href="https://scholar.google.com/citations?user=5RhJ-eEAAAAJ&hl=it" target="_blank" style="margin-right: 15px"><i class="fa-solid fa-book"></i> Scholar</a>
<a href="https://github.com/s-esposito" target="_blank" style="margin-right: 15px"><i class="fab fa-github fa-lg"></i> Github</a>
<a href="https://www.linkedin.com/in/stefanoesposito97" target="_blank" style="margin-right: 15px"><i class="fab fa-linkedin fa-lg"></i> LinkedIn</a>
</p>
"""
footer = """
<div class="col-sm-12" style="">
<p>
Website template provided by <a href="https://github.com/m-niemeyer/m-niemeyer.github.io" target="_blank">Michael Niemeyer</a>. <br>
<a href="https://m-niemeyer.github.io/" target="_blank">⚛</a>
<a href="https://kashyap7x.github.io/" target="_blank">⚛</a>
<a href="https://kait0.github.io/" target="_blank">⚛</a>
</p>
</div>
"""
return name, bio_text, footer
def get_author_dict():
return {
'Andreas Geiger': 'https://www.cvlibs.net/',
'Songyou Peng': 'https://pengsongyou.github.io/',
'Zehao Yu': 'https://niujinshuchong.github.io/',
'Torsten Sattler': 'https://tsattler.github.io/',
'Katja Schwarz': 'https://katjaschwarz.github.io/',
'Axel Sauer': 'https://axelsauer.com/',
'Jonathan Barron': 'https://jonbarron.info/',
'Ben Mildenhall': 'https://bmild.github.io/',
'Mehdi Sajjadi': 'https://msajjadi.com/',
'Noha Radwan': 'http://www2.informatik.uni-freiburg.de/~radwann/',
'Chiyu Jiang': 'https://www.maxjiang.ml/',
'Yiyi Liao': 'https://yiyiliao.github.io/',
'Marc Pollefeys': 'https://people.inf.ethz.ch/pomarc/',
'Michael Oechsle': 'https://moechsle.github.io/',
'Christian Reiser': 'https://creiser.github.io/',
'Lars Mescheder': 'https://scholar.google.de/citations?user=h2k1gL4AAAAJ&hl=de',
'Thilo Strauss': 'https://scholar.google.com/citations?user=VlymtLQAAAAJ&hl=en',
'Sebastian Nowozin': 'http://www.nowozin.net/sebastian/',
'Marie-Julie Rakotosaona': 'http://www.lix.polytechnique.fr/Labo/Marie-Julie.RAKOTOSAONA/',
'Fabian Manhardt': 'https://campar.in.tum.de/Main/FabianManhardt',
'Diego Martin Arroyo': 'https://martinarroyo.net/',
'Abhijit Kundu': 'https://abhijitkundu.info/',
'Federico Tombari': 'https://www.cs.cit.tum.de/camp/members/senior-research-scientists/federico-tombari/',
'Anpei Chen': 'https://apchenstu.github.io/',
'Bozidar Antic': 'https://bozidarantic.com/',
'Apratim Bhattacharyya': 'https://apratimbhattacharyya18.github.io/',
'Siyu Tang': 'https://inf.ethz.ch/people/person-detail.MjYyNzgw.TGlzdC8zMDQsLTg3NDc3NjI0MQ==.html',
'Daniele Baieri': 'https://gladia.di.uniroma1.it/authors/baieri/',
'Stefan Zellmann': 'https://www.szellmann.de/',
'André Hinkenjann': 'https://www.h-brs.de/en/inf/prof-dr-andre-hinkenjann',
'Emanuele Rodolà': 'https://gladia.di.uniroma1.it/authors/rodola/',
'Filippo Maggioli': 'https://gladia.di.uniroma1.it/authors/maggioli/',
'Samuel Rota Bulò': 'https://scholar.google.com/citations?user=484sccEAAAAJ&hl=it',
'Lorenzo Porzi': 'https://scholar.google.it/citations?user=vW1gaVEAAAAJ&hl=it',
'Christian Richardt': 'https://richardt.name/',
'Michael Zollhoefer': 'https://zollhoefer.com/',
'Peter Kontschieder': 'https://scholar.google.co.uk/citations?user=CxbDDRMAAAAJ&hl=en',
'Haofei Xu': 'https://haofeixu.github.io/',
'Siyu Tang': 'https://inf.ethz.ch/people/person-detail.MjYyNzgw.TGlzdC8zMDQsLTg3NDc3NjI0MQ==.html',
'Donato Crisostomi': 'https://crisostomi.com/'
}
def generate_person_html(persons, connection=", ", make_bold=True, make_bold_name='Michael Niemeyer', add_links=True):
links = get_author_dict() if add_links else {}
s = ""
for p in persons:
string_part_i = ""
for name_part_i in p.get_part('first') + p.get_part('last'):
if string_part_i != "":
string_part_i += " "
string_part_i += name_part_i
if string_part_i in links.keys():
string_part_i = f'<a href="{links[string_part_i]}" target="_blank">{string_part_i}</a>'
if make_bold and string_part_i == make_bold_name:
string_part_i = f'<span style="font-weight: bold";>{make_bold_name}</span>'
if p != persons[-1]:
string_part_i += connection
s += string_part_i
return s
def get_paper_entry(entry_key, entry):
s = """<div style="margin-bottom: 2em;"> <div class="row"><div class="col-sm-3">"""
s += f"""<img src="{entry.fields['img']}" class="img-fluid custom-img-thumbnail" alt="Project image">"""
s += """</div><div class="col-sm-9">"""
if 'award' in entry.fields.keys():
s += f"""<a href="{entry.fields['html']}" target="_blank">{entry.fields['title']}</a> <span style="color: red;">({entry.fields['award']})</span><br>"""
else:
s += f"""<a href="{entry.fields['html']}" target="_blank">{entry.fields['title']}</a> <br>"""
s += f"""{generate_person_html(entry.persons['author'])} <br>"""
s += f"""<span style="font-style: italic;">{entry.fields['booktitle']}</span>, {entry.fields['year']} <br>"""
artefacts = {'html': 'Project Page', 'pdf': 'Paper', 'supp': 'Supplemental', 'video': 'Video', 'poster': 'Poster', 'code': 'Code'}
i = 0
for (k, v) in artefacts.items():
if k in entry.fields.keys():
if i > 0:
s += ' / '
s += f"""<a href="{entry.fields[k]}" target="_blank">{v}</a>"""
i += 1
else:
print(f'[{entry_key}] Warning: Field {k} missing!')
cite = "<pre><code>@InProceedings{" + f"{entry_key}, \n"
cite += "\tauthor = {" + f"{generate_person_html(entry.persons['author'], make_bold=False, add_links=False, connection=' and ')}" + "}, \n"
for entr in ['title', 'booktitle', 'year']:
cite += f"\t{entr} = " + "{" + f"{entry.fields[entr]}" + "}, \n"
cite += """}</pre></code>"""
s += " /" + f"""<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapse{entry_key}" aria-expanded="false" aria-controls="collapseExample" style="margin-left: -6px; margin-top: -2px;">Expand bibtex</button><div class="collapse" id="collapse{entry_key}"><div class="card card-body">{cite}</div></div>"""
s += """ </div> </div> </div>"""
return s
def get_talk_entry(entry_key, entry):
s = """<div style="margin-bottom: 2em;"> <div class="row"><div class="col-sm-3">"""
s += f"""<img src="{entry.fields['img']}" class="img-fluid custom-img-thumbnail" alt="Project image">"""
s += """</div><div class="col-sm-9">"""
s += f"""{entry.fields['title']}<br>"""
s += f"""<span style="font-style: italic;">{entry.fields['booktitle']}</span>, {entry.fields['year']} <br>"""
artefacts = {'slides': 'Slides', 'video': 'Recording'}
i = 0
for (k, v) in artefacts.items():
if k in entry.fields.keys():
if i > 0:
s += ' / '
s += f"""<a href="{entry.fields[k]}" target="_blank">{v}</a>"""
i += 1
else:
print(f'[{entry_key}] Warning: Field {k} missing!')
s += """ </div> </div> </div>"""
return s
def get_publications_html():
parser = bibtex.Parser()
bib_data = parser.parse_file('publication_list.bib')
keys = bib_data.entries.keys()
s = ""
for k in keys:
s+= get_paper_entry(k, bib_data.entries[k])
return s
def get_talks_html():
parser = bibtex.Parser()
bib_data = parser.parse_file('talk_list.bib')
keys = bib_data.entries.keys()
s = ""
for k in keys:
s+= get_talk_entry(k, bib_data.entries[k])
return s
def get_index_html():
pub = get_publications_html()
talks = get_talks_html()
name, bio_text, footer = get_personal_data()
s = f"""
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JLDH01R2DE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){{dataLayer.push(arguments);}}
gtag('js', new Date());
gtag('config', 'G-JLDH01R2DE');
</script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<title>{name[0] + ' ' + name[1]}</title>
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
</head>
<body>
<div class="container">
<div class="row" style="margin-top: 3em;">
<div class="col-sm-12" style="margin-bottom: 2em;">
<h3 class="display-4" style="text-align: center;"><span style="font-weight: bold;">{name[0]}</span> {name[1]}</h3>
</div>
<br>
<div class="col-md-8" style="">
{bio_text}
</div>
<div class="col-md-4" style="">
<img src="assets/img/profile.jpg" class="custom-img-thumbnail" width="280px" alt="Profile picture">
</div>
</div>
<div class="row" style="margin-top: 2em;">
<div class="col-sm-12" style="">
<h4>Publications</h4>
{pub}
</div>
</div>
<!--
<div class="row" style="margin-top: 3em;">
<div class="col-sm-12" style="">
<h4>Talks</h4>
{talks}
</div>
</div>
-->
<div class="row" style="margin-top: 3em; margin-bottom: 1em;">
{footer}
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>
</html>
"""
return s
def write_index_html(filename='index.html'):
s = get_index_html()
with open(filename, 'w', encoding='utf-8') as f:
f.write(s)
print(f'Written index content to {filename}.')
if __name__ == '__main__':
write_index_html('index.html')