Skip to content

Commit

Permalink
update from master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Wei committed Feb 4, 2024
2 parents a84ac29 + b295d4c commit 01d71fc
Show file tree
Hide file tree
Showing 574 changed files with 68,898 additions and 5,889 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 90
exclude = file1.py, **/__init__.py

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/*.pdf filter=lfs diff=lfs merge=lfs -text
**/*.jpg filter=lfs diff=lfs merge=lfs -text
**/*.gif filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
drop = stash drop
# find cp from release branch
fcp = "!scripts/fcp.sh"
# format code
fmt = "!scripts/format.sh --git"
# push code to ci, it will rebase lastest master and then push
pci = !git fetch origin master && git rebase origin/master && git push
la = log --oneline --decorate --graph --all
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Style

> <b>Before you pull request, please run ``./scripts/format.sh --git``.</b>
This project is formatted with [clang-format][fmt] using the style file at the root of the repository. Please run clang-format before sending a pull request.

In general, try to follow the style of surrounding code. We mostly follow the [Google C++ style guide][cpp-style].

Commit messages should be in the imperative mood, as described in the [Git contributing file][git-contrib]:

> Describe your changes in imperative mood, e.g. "make xyzzy do frotz"
> instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy
> to do frotz", as if you are giving orders to the codebase to change
> its behaviour.
[fmt]: http://clang.llvm.org/docs/ClangFormat.html
[cpp-style]: https://google.github.io/styleguide/cppguide.html
[git-contrib]: http://git.kernel.org/cgit/git/git.git/tree/Documentation/SubmittingPatches?id=HEAD

# Tests

Please verify the tests pass by running the target `tests/run_tests`.

If you are adding functionality, add tests accordingly.

# Pull request process

Every pull request undergoes a code review. Unfortunately, github's code review process isn't great, but we'll manage. During the code review, if you make changes, add new commits to the pull request for each change. Once the code review is complete, rebase against the master branch and squash into a single commit.
43 changes: 43 additions & 0 deletions .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Python checks
on:
pull_request:
types: [assigned]
branches:
- "*"
workflow_dispatch:
inputs:
placeholder:
description: "placeholder, no effect"
required: false
jobs:
check_license_and_format:
name: License and format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: format
id: format_check
run: |
bash ./scripts/format.sh --git
- name: install clang-format
id: clang-format
run: sudo apt install clang-format
- name: check for changes
run: |
if git diff --exit-code; then
echo "has_changes=false" >> $GITHUB_ENV
else
echo "has_changes=true" >> $GITHUB_ENV
fi
- name: Git push
if: ${{ env.has_changes == 'true' }}
id: git_push
run: |
git config --global user.email "[email protected]"
git config --global user.name "ci-bot"
git add -u
git commit -m "auto format by CI"
git push
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ src/.DS_Store
**/*.pptx
**/*.pth
**/data
<<<<<<< HEAD
**/__pycache__
code/BEVFormer/work_dirs/bevformer_tiny/*.log
code/BEVFormer/work_dirs/bevformer_base/*.log
=======
papers/

>>>>>>> b295d4c77a3989d459103b084abae63dd45b657c
86 changes: 86 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
[submodule "lift-splat-shoot"]
path = code/LSS
url = https://github.com/nv-tlabs/lift-splat-shoot
[submodule "BEVDet"]
path = code/BEVDet
url = https://github.com/HuangJunJie2017/BEVDet
[submodule "MonoScene"]
path = code/MonoScene
url = https://github.com/astra-vision/MonoScene
[submodule "BEVDepth"]
path = code/BEVDepth
url = https://github.com/Megvii-BaseDetection/BEVDepth
[submodule "BEVStereo"]
path = code/BEVStereo
url = https://github.com/Megvii-BaseDetection/BEVStereo
[submodule "BEVerse"]
path = code/BEVerse
url = https://github.com/zhangyp15/BEVerse

[submodule "BEVFormer"]
path = code/BEVFormer
url = https://github.com/fundamentalvision/BEVFormer
[submodule "CUDA-BEVFusion/bevfusion"]
path = code/CUDA-BEVFusion
url = https://github.com/mit-han-lab/bevfusion
[submodule "PETR"]
path = code/PETR
url = https://github.com/megvii-research/PETR

[submodule "TPVFormer"]
path = code/tpvformer
url = https://github.com/wzzheng/tpvformer

[submodule "OccFormer"]
path = code/OccFormer
url = https://github.com/zhangyp15/OccFormer
[submodule "OccNeRF"]
path = code/OccNeRF
url = https://github.com/LinShan-Bin/OccNeRF
[submodule "Sparse4D"]
path = code/Sparse4D
url = https://github.com/HorizonRobotics/Sparse4D
[submodule "FB-BEV"]
path = code/FB-BEV
url = https://github.com/NVlabs/FB-BEV

[submodule "UniAD"]
path = code/UniAD
url = https://github.com/OpenDriveLab/UniAD

[submodule "SurroundOcc"]
path = code/SurroundOcc
url = https://github.com/weiyithu/SurroundOcc
[submodule "Occ3D"]
path = code/Occ3D
url = https://github.com/Tsinghua-MARS-Lab/Occ3D
[submodule "OpenScene"]
path = code/OpenScene
url = https://github.com/OpenDriveLab/OpenScene


[submodule "Deformable-DETR"]
path = code/Deformable-DETR
url = https://github.com/fundamentalvision/Deformable-DETR
[submodule "detr3d"]
path = code/detr3d
url = https://github.com/WangYueFt/detr3d
[submodule "Swin-Transformer"]
path = code/Swin-Transformer
url = https://github.com/microsoft/Swin-Transformer
[submodule "ViT"]
path = code/vit-pytorch
url = https://github.com/lucidrains/vit-pytorch
[submodule "MAE"]
path = code/mae
url = https://github.com/facebookresearch/mae

[submodule "QNN"]
path = code/QNN
url = https://github.com/Charmve/QNN
[submodule "Lite"]
path = code/Lite
url = https://github.com/Charmve/Lite
[submodule "vision_module"]
path = code/vision_takes_all
url = https://github.com/Charmve/vision_takes_all
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added CHANGELOG
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Python checks
on:
pull_request:
types: [assigned]
branches:
- "*"
workflow_dispatch:
inputs:
placeholder:
description: "placeholder, no effect"
required: false
jobs:
check_license_and_format:
name: License and format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Check Python format
id: py_check
run: |
python3 -m pip install black==19.10b0
python3 ci/check/run_py_format.py --source_dir $PWD
- name: Run Python Format
id: py_fmt
run: |
python3 -m pip install black==19.10b0
python3 ci/check/run_py_format.py --source_dir $PWD --fix
- name: install clang-format
id: clang-format
run: sudo apt install clang-format
- name: Run clang-format
id: C_fmt
run: find . -regex '.*\.\(cpp\|hpp\|cu\|c\|h\)' -exec clang-format -style=file -i {} \;
- name: check for changes
run: |
if git diff --exit-code; then
echo "has_changes=false" >> $GITHUB_ENV
else
echo "has_changes=true" >> $GITHUB_ENV
fi
- name: Git push
if: ${{ env.has_changes == 'true' }}
id: git_push
run: |
git config --global user.email "[email protected]"
git config --global user.name "ci-bot"
git add -u
git commit -m "auto format by CI"
git push
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-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/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# 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/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

.idea/
checkpoints/onnx/*
checkpoints/pytorch/*
checkpoints/tensorrt/*
work_dirs/*
Loading

0 comments on commit 01d71fc

Please sign in to comment.