diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..ce3912550 --- /dev/null +++ b/.gitignore @@ -0,0 +1,117 @@ +# Basic +*.log +**/*.pyc +__pycache__/ +*.swp +*.swo +*.swn +test_* + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + + +# C extensions + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +# data +data/ +output_dir/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..a8e5812e8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,41 @@ +- repo: local + hooks: + - id: yapf + name: yapf + entry: yapf + language: system + args: [-i, --style .style.yapf] + files: \.py$ + +- repo: https://github.com/pre-commit/pre-commit-hooks + sha: a11d9314b22d8f8c7556443875b731ef05965464 + hooks: + - id: check-merge-conflict + - id: check-symlinks + - id: end-of-file-fixer + - id: trailing-whitespace + - id: detect-private-key + - id: check-symlinks + - id: check-added-large-files + +- repo: local + hooks: + - id: flake8 + name: flake8 + entry: flake8 + language: system + args: + - --count + - --select=E9,F63,F7,F82 + - --show-source + - --statistics + files: \.py$ + +- repo: local + hooks: + - id: copyright_checker + name: copyright_checker + entry: python ./.copyright.hook + language: system + files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$ + exclude: (?!.*third_party)^.*$ diff --git a/.style.yapf b/.style.yapf new file mode 100644 index 000000000..4741fb4f3 --- /dev/null +++ b/.style.yapf @@ -0,0 +1,3 @@ +[style] +based_on_style = pep8 +column_limit = 80 diff --git a/README.md b/README.md index 1f13d565d..b736b1a14 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# PaddleVideo \ No newline at end of file +[简体中文](README_cn.md) | English + +# PaddleVideo + +## Introduction + +PaddleVideo is a toolset for video recognition, action localization, super resolution, video grounding, and video caption tasks prepared for the industry and academia. This repository provides examples and best practice guildelines for building computer vision systems in the scene of video area. We devote to support examples and utilities which can significantly reduce the "time to deploy". By the way, this is also a proficiency verification and implementation of PaddlePaddle 2.0 in the video field. + +## Features +Coming soon :) + +## Contributing +This poject welcomes contributions and suggestions. Please see our [contribution guidelines](docs/CONTRIBUTING.md). diff --git a/README_cn.md b/README_cn.md new file mode 100644 index 000000000..d72f8f5d2 --- /dev/null +++ b/README_cn.md @@ -0,0 +1,7 @@ +[English](README.md) | 中文 + +# PaddleVideo + +## 简介 + +PaddleVideo 基于全新API设计的PaddlePaddle2.0框架,以支持视频领域学术研究和产业实践为目的,为您带来包括视频分类,动作定位,超分等模型,更多功能和代码即将Release :) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md new file mode 100644 index 000000000..353a649f5 --- /dev/null +++ b/docs/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contribution Guidelines + +We appreciate all contributions. If you are planning to contribute back bug-fixes, docs fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..a7c1474f1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +paddlepaddle-gpu>=2.0.0.rc +tqdm +PyYAML>=5.1 +numpy