forked from GutlapalliNikhil/GutlapalliNikhil.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.py
253 lines (231 loc) · 15.2 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
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 research scientist at Google working on 3D computer vision and graphics.</p>
<!-- <p>
<span style="font-weight: bold;">Research:</span>
I am excited about complex problems that can be tackled with learning-based systems. Currently, my research focuses on 3D vision, and I am interested in how machines can infer 3D representations from sparse observations. Further, I am big fan of neural scene representations, \ie, how scenes are best represented in learning-based systems using deep neural networks.
</p> -->
<p>
<span style="font-weight: bold;">Bio:</span>
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>.
During my PhD studies, I joined <a href="https://research.google/teams/brain/">Google Brain</a> for an internship and subsequently as a student researcher.
As an undergraduate student, I received a BSc in Mathematics from the <a href="http://www.mi.uni-koeln.de/main/index.en.php" target="_blank">University of Cologne (Germany)</a> and a MSc from the
<!-- During my Bachelor studies, I spent one year at the <a href="https://www.ub.edu/web/portal/en/" target="_blank">University of Barcelona</a>, Spain, funded by the ERASMUS program. -->
<!-- Following my interest in computer science, I then moved to Scotland to gain my Master's degree in Advanced Computer Science at the -->
<a href="https://www.st-andrews.ac.uk/computer-science/" target="_blank">University of St Andrews (UK)</a>.
<!-- In October 2018, I started my PhD in computer vision / machine learning in the <a href="https://uni-tuebingen.de/en/fakultaeten/mathematisch-naturwissenschaftliche-fakultaet/fachbereiche/informatik/lehrstuehle/autonomous-vision/home/" target="_blank">AVG group</a> at the <a href ="https://is.mpg.de/" target="_blank">Max Planck Institute for Intelligent Systems</a> in Tübingen, Germany, under the supervision of <a href="http://cvlibs.net/" target="_blank">Andreas Geiger</a>. -->
<!-- In 2021 I joined <a href="https://research.google/teams/brain/">Google Brain</a> for an internship and subsequently as a student researcher. -->
</p>
<p>
<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 two research projects Occupancy Networks and DVR were selected to be <a href="https://www.paperdigest.org/2021/03/most-influential-cvpr-papers-2021-03/" target="_blank">among the top-15 most influencial CVPR papers</a> from 2019 and 2020, respectively.
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>).
</p>
<p>For any inquiries, feel free to reach out to me via mail!</p>
<p>
<a href="https://m-niemeyer.github.io/assets/pdf/CV_Niemeyer_Michael.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/Mi_Niemeyer" target="_blank" style="margin-right: 15px"><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: 15px"><i class="fa-solid fa-book"></i> Scholar</a>
<a href="https://github.com/m-niemeyer" target="_blank" style="margin-right: 15px"><i class="fab fa-github fa-lg"></i> Github</a>
<a href="https://www.linkedin.com/in/michael-niemeyer" target="_blank" style="margin-right: 15px"><i class="fab fa-linkedin fa-lg"></i> LinkedIn</a>
</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'
}
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" 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-8" style="">
{bio_text}
</div>
<div class="col-md-4" 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>
<!-- 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')