-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
243 lines (221 loc) · 13.7 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
from pybtex.database.input import bibtex
def get_personal_data():
name = ["Maryam", "Hashemzadeh"]
email = "[email protected]"
# twitter = "Mi_Niemeyer"
github = "MHashemzadeh"
linkedin = "maryam-hashemzadeh-b76a7155"
bio_text = f"""
<p>I am a research associate at Mila working on LLM and RL.</p>
<!-- <p>
<span style="font-weight: bold;">Research:</span>
I'm passionate about leveraging learning-based systems to address complex challenges. Currently, my research focuses on Large Language Models (LLMs) and their application in interactive decision-making, akin to Reinforcement Learning (RL) agents, while emphasizing the prevention of hallucinations. Additionally, I'm exploring how LLMs can enhance generalization in Lifelong learning. </p> -->
<p>
<span style="font-weight: bold;">Bio:</span>
I'm a research associate at <a href="https://mila.quebec/en/" target="_blank">Mila</a> supervised by <a href="http://sarathchandar.in/" target="_blank">Sarath Chandar</a> with close collaboration with <a href="https://www.microsoft.com/en-us/research/people/macote/" target="_blank">Marc-Alexandre Côté</a>x.
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.
I hold an MSc from the University of Alberta, where I conducted research with <a href="http://webdocs.cs.ualberta.ca/~whitem/" target="_blank">Martha White</a> and <a href="http://webdocs.cs.ualberta.ca/~alona/" target="_blank">Alona Fyshe</a>, specializing in Offline Reinforcement Learning.
</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="mailto:[email protected]" style="margin-right: 15px"><i class="far fa-envelope-open fa-lg"></i> Mail</a>
<a href="https://twitter.com/MaryamHashemz" target="_blank" style="margin-right: 15px"><i class="fab fa-twitter fa-lg"></i> Twitter</a>
<a href="https://scholar.google.com/citations?user=3h6myHkAAAAJ&hl=en" target="_blank" style="margin-right: 15px"><i class="fa-solid fa-book"></i> Scholar</a>
<a href="https://www.linkedin.com/in/maryam-hashemzadeh-b76a7155" 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 adopted from <a href="https://github.com/m-niemeyer/m-niemeyer.github.io" </a>. <br>
</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/'
}
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: 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')