Awesome-Computer-Vision-Paper-List 项目教程
1. 项目的目录结构及介绍
Awesome-Computer-Vision-Paper-List/
├── README.md
├── data/
│ └── papers.csv
├── docs/
│ └── tutorial.md
├── scripts/
│ └── generate_paper_list.py
└── config/
└── settings.json
- README.md: 项目的主介绍文件,包含项目的基本信息和使用说明。
- data/: 存储项目所需的数据文件,如
papers.csv
包含了计算机视觉领域的论文列表。 - docs/: 包含项目的文档文件,如
tutorial.md
提供了项目的详细教程。 - scripts/: 包含项目的脚本文件,如
generate_paper_list.py
用于生成论文列表。 - config/: 包含项目的配置文件,如
settings.json
用于存储项目的配置信息。
2. 项目的启动文件介绍
项目的启动文件位于 scripts/generate_paper_list.py
。该脚本的主要功能是从 data/papers.csv
文件中读取论文信息,并根据配置文件 config/settings.json
中的设置生成论文列表。
# scripts/generate_paper_list.py
import pandas as pd
import json
def main():
# 读取配置文件
with open('../config/settings.json', 'r') as f:
settings = json.load(f)
# 读取数据文件
data = pd.read_csv('../data/papers.csv')
# 根据配置文件生成论文列表
filtered_data = data[data['year'] >= settings['start_year']]
filtered_data.to_csv('filtered_papers.csv', index=False)
if __name__ == "__main__":
main()
3. 项目的配置文件介绍
项目的配置文件位于 config/settings.json
。该文件包含了项目运行所需的各种配置信息,例如起始年份、过滤条件等。
{
"start_year": 2010,
"filter_conditions": {
"min_citations": 10
}
}
- start_year: 指定论文列表中包含的论文的起始年份。
- filter_conditions: 包含其他过滤条件,如
min_citations
表示论文的最小引用次数。
通过修改 settings.json
文件中的配置,可以灵活地调整项目的运行参数。