-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.py
286 lines (264 loc) · 16.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
from pybtex.database.input import bibtex
def get_personal_data():
name = ["Michael", "Niemeyer"]
email = "[email protected]"
twitter = "Mi_Niemeyer"
github = "m-niemeyer"
linkedin = "michael-niemeyer"
bio_text = f"""
<p>
I am a senior research scientist at Google working on 3D computer vision and generative modeling.
Prior to joining Google, I was a PhD student at the <a href="https://uni-tuebingen.de/en/fakultaeten/mathematisch-naturwissenschaftliche-fakultaet/fachbereiche/informatik/lehrstuehle/autonomous-vision/home/" target="_blank">Max Planck Insitute for Intelligent Systems</a> supervised by <a href="https://www.cvlibs.net/" target="_blank">Andreas Geiger</a>.
As an undergraduate student, I studied Mathematics at the <a href="http://www.mi.uni-koeln.de/main/index.en.php" target="_blank">University of Cologne (Germany)</a> and computer science as the Master's at the
<a href="https://www.st-andrews.ac.uk/computer-science/" target="_blank">University of St Andrews (UK)</a>.
</p>
<p>For any inquiries, feel free to reach out to me via mail!</p>
<p>
<a href="https://m-niemeyer.github.io/assets/other/bio.txt" target="_blank" style="margin-right: 5px"><i class="fa-solid fa-graduation-cap"></i> Bio</a>
<a href="https://m-niemeyer.github.io/assets/pdf/CV_Niemeyer_Michael.pdf" target="_blank" style="margin-right: 5px"><i class="fa fa-address-card fa-lg"></i> CV</a>
<a href="mailto:[email protected]" style="margin-right: 5px"><i class="far fa-envelope-open fa-lg"></i> Mail</a>
<a href="https://twitter.com/Mi_Niemeyer" target="_blank" style="margin-right: 5px"><i class="fab fa-twitter fa-lg"></i> Twitter</a>
<a href="https://scholar.google.com/citations?user=v1O7i_0AAAAJ&hl=en" target="_blank" style="margin-right: 5px"><i class="fa-solid fa-book"></i> Scholar</a>
<a href="https://github.com/m-niemeyer" target="_blank" style="margin-right: 5px"><i class="fab fa-github fa-lg"></i> Github</a>
<a href="https://www.linkedin.com/in/michael-niemeyer" target="_blank" style="margin-right: 5px"><i class="fab fa-linkedin fa-lg"></i> LinkedIn</a>
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#demo" data-toggle="collapse" style="margin-left: -6px; margin-top: -2px;"><i class="fa-solid fa-trophy"></i>Awards</button>
<div id="demo" class="collapse">
<span style="font-weight: bold;">Awards:</span>
In 2011, I graduated as top of my year from secondary school and received <a href="https://www.e-fellows.net/" target="_blank">the e-fellows scholarship</a> and was admitted to <a href="https://www.mathematik.de/" target="_blank">the Germany Mathematics Society</a> and <a href="https://www.dpg-physik.de/" target="_blank">the German Physics Society</a>. In 2017 I received the Dean's List Award for Academic Excellence for my Master's degree.
During my PhD studies, I was a scholar of <a href="https://imprs.is.mpg.de/" target="_blank">the International Max Planck Research School for Intelligent Systems (IMPRS-IS)</a>.
Our research projects Occupancy Networks, DVR, and ConvOnet were selected to be among the 15 most influencial <a href="https://www.paperdigest.org/2021/03/most-influential-cvpr-papers-2021-03/" target="_blank">CVPR</a> / <a href="https://www.paperdigest.org/2023/09/most-influential-eccv-papers-2023-09/" target="_blank">ECCV</a> papers of 2019 and 2020.
In 2021, we received the CS teaching award for our <a href="https://uni-tuebingen.de/fakultaeten/mathematisch-naturwissenschaftliche-fakultaet/fachbereiche/informatik/lehrstuehle/autonomous-vision/lectures/computer-vision/" target="_blank">computer vision lecture</a> as well as <a href="https://cyber-valley.de/en/news/meet-the-ai-gamedev-winners" target="blank">the AIGameDev scientific award</a> for our GRAF project and <a href="https://cvpr2021.thecvf.com/node/329" target="_blank">the CVPR Best Paper Award</a> for GIRAFFE (<a href="https://cyber-valley.de/en/news/best-paper-cvpr-2021" target="_blank">news coverage</a>).
</div>
</p>
"""
footer = """
<div class="col-sm-12" style="">
<h4>Homepage Template</h4>
<p>
Feel free to use this website as a template! It is fully responsive and very easy to use and maintain as it uses a python script that crawls your bib files to automatically add the papers and talks. If you find it helpful, please add a link to my website - I will also add a link to yours (if you want). <a href="https://github.com/m-niemeyer/m-niemeyer.github.io" target="_blank">Checkout the github repository for instructions on how to use it</a>. <br>
<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',
'Hidenobu Matsuki': 'https://dblp.org/pid/225/4487.html',
'Keisuke Tateno': 'https://campar.in.tum.de/Main/KeisukeTateno',
'Alessio Tonioni': 'https://alessiotonioni.github.io/',
'Christina Tsalicoglou': 'https://scholar.google.ch/citations?user=7D10QQkAAAAJ&hl=en',
'Amit Raj': 'https://amitraj93.github.io/',
'Srinivas Kaza': 'https://www.linkedin.com/in/srinivas-kaza-64223b74',
'Ben Poole': 'https://poolio.github.io/',
'Nataniel Ruiz': 'https://natanielruiz.github.io/',
'Shiran Zada': 'https://scholar.google.com/citations?user=I2qheksAAAAJ',
'Kfir Aberman': 'https://kfiraberman.github.io/',
'Michael Rubinstein': 'http://people.csail.mit.edu/mrub/',
'Yuanzhen Li': 'http://people.csail.mit.edu/yzli/',
'Varun Jampani': 'https://varunjampani.github.io/',
'Francis Engelmann': 'https://francisengelmann.github.io/',
'Mohamad Shahbazi': 'https://mohamad-shahbazi.github.io/',
'Liesbeth Claessens': 'https://asl.ethz.ch/the-lab/people/person-detail.MjY5NDUz.TGlzdC8xNTg0LDEyMDExMzk5Mjg=.html',
'Edo Collins': 'https://www.linkedin.com/in/edo-collins/?originalSubdomain=ch',
'Luc Van Gool': 'https://ee.ethz.ch/the-department/faculty/professors/person-detail.OTAyMzM=.TGlzdC80MTEsMTA1ODA0MjU5.html',
'Fangjinhua Wang': 'https://fangjinhuawang.github.io/',
'Richard Szeliski': 'https://szeliski.org/',
'Kunyi Li': 'https://campus.tum.de/tumonline/ee/ui/ca2/app/desktop/#/pl/ui/$ctx/visitenkarte.show_vcard?$ctx=design=ca2;header=max;lang=de&pPersonenGruppe=3&pPersonenId=6EC78DAA25310FF2',
'Nassir Navab': 'https://www.professoren.tum.de/en/navab-nassir',
'Rama Gosula': 'https://arvr.google.com/',
'John Bates': 'https://arvr.google.com/',
'Dominik Kaeser': 'https://scholar.google.com/citations?user=DQ4838YAAAAJ&hl=en',
'Erik Sandström': 'https://scholar.google.com/citations?user=phiETm4AAAAJ&hl=en',
'Luc Van-Gool': 'https://insait.ai/prof-luc-van-gool/',
'Martin Oswald': 'https://oswaldm.github.io/',
'Fangneng Zhan': 'https://fnzhan.com/',
'Hanxue Liang': 'https://scholar.google.com/citations?user=XcxDA14AAAAJ&hl=en',
'Yifan Wang': 'https://yifita.netlify.app/',
'Adam Kortylewski': 'https://genintel.mpi-inf.mpg.de/',
'Cengiz Oztireli': 'https://www.cl.cam.ac.uk/~aco41/',
'Gordon Wetzstein': 'https://stanford.edu/~gordonwz/',
'Christian Theobalt': 'https://people.mpi-inf.mpg.de/~theobalt/',
}
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: 3em;"> <div class="row"><div class="col-sm-3">"""
s += f"""<img src="{entry.fields['img']}" class="img-fluid 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: 3em;"> <div class="row"><div class="col-sm-3">"""
s += f"""<img src="{entry.fields['img']}" class="img-fluid 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">
<!-- 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" />
<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">
<div class="col-md-1"></div>
<div class="col-md-10">
<div class="row" style="margin-top: 3em;">
<div class="col-sm-12" style="margin-bottom: 1em;">
<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-10" style="">
{bio_text}
</div>
<div class="col-md-2" style="">
<img src="assets/img/profile.jpg" class="img-thumbnail" width="280px" alt="Profile picture">
</div>
</div>
<div class="row" style="margin-top: 1em;">
<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>
<div class="col-md-1"></div>
</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') as f:
f.write(s)
print(f'Written index content to {filename}.')
if __name__ == '__main__':
write_index_html('index.html')