Skip to content

Commit

Permalink
corrected citekey + wrong venue
Browse files Browse the repository at this point in the history
  • Loading branch information
taiya committed Oct 18, 2023
1 parent 178a02c commit 9f978dc
Show file tree
Hide file tree
Showing 3 changed files with 618 additions and 16 deletions.
19 changes: 5 additions & 14 deletions convert_to_bibtex.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# --- Converts the publications into a bibtex file for use in latex
import json

# @article{flowcaps,
# title={Unsupervised part representation by Flow Capsules},
# author={Sara Sabour and \textbf{Andrea Tagliasacchi} and Soroosh Yazdani and Geoffrey E. Hinton and David J. Fleet},
# year={2021},
# journal=ICML,
# note={\url{https://arxiv.org/abs/2011.13920}}
# }

_conference_template="""
@conference{KEY,
@inproceedings{KEY,
title={{TITLE}},
author={AUTHORS},
howpublished={{CONFERENCE}},
booktitle={{CONFERENCE}},
year={YEAR},
notes={NOTES},
}"""
Expand Down Expand Up @@ -46,7 +38,7 @@
}"""

_course_template="""
@misc{KEY,
@course{KEY,
title={{TITLE}},
author={AUTHORS},
howpublished={{HOWPUBLISHED}},
Expand Down Expand Up @@ -92,7 +84,7 @@ def techreport(pub):
ret = ret.replace("NOTES", notes_to_string(pub['notes']) if "notes" in pub else "")
return ret

def misc(pub):
def course(pub):
ret = _course_template
ret = ret.replace("KEY", pub['key'])
ret = ret.replace("TITLE", pub['title'])
Expand All @@ -106,12 +98,11 @@ def dispatcher(pub):
if pub['type'] == 'conference': return conference(pub)
if pub['type'] == 'journal': return journal(pub)
if pub['type'] == 'techreport': return techreport(pub)
if pub['type'] == 'course': return techreport(pub)
if pub['type'] == 'course': return course(pub)
raise ValueError(pub['type'])

with open('pubs.json', 'r') as fp:
data = json.load(fp)
for pub in data:
# if pub['key'] != "chen2020bspnet": continue #TODO
# if "notes" not in pub: continue
print(dispatcher(pub))
7 changes: 5 additions & 2 deletions pubs.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"type": "conference",
"key": "zhong2023nkf",
"key": "hedlin2023unsupervised",
"title": "Unsupervised Semantic Correspondence Using Stable Diffusion",
"authors": [
"Eric Hedlin",
Expand Down Expand Up @@ -73,6 +73,9 @@
"homepage": "https://robustnerf.github.io",
"arxiv": "https://arxiv.org/abs/2302.00833",
"special": "CVPR'23 (highlight)",
"notes":[
"highlight"
],
"year": "2023"
},
{
Expand Down Expand Up @@ -565,7 +568,7 @@
"key": "deng2021vn",
"title": "Vector Neurons: a general framework for SO(3)-equivariant networks",
"year": "2021",
"venue": "arXiv preprint: 2104.12229",
"venue": "International Conference on Computer Vision (ICCV)",
"icon": "/icons/deng2021vn.jpg",
"source": "https://github.com/FlyingGiraffe/vnn",
"homepage": "https://cs.stanford.edu/~congyue/vnn",
Expand Down
Loading

0 comments on commit 9f978dc

Please sign in to comment.