Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
a30e0a6
add-torch
chanwutk Oct 6, 2021
65873fd
upgrade pip before installing dependencies
chanwutk Oct 6, 2021
fbcf063
expand import *
chanwutk Oct 6, 2021
8de11a0
indent with spaces
chanwutk Oct 6, 2021
f63110c
add Github Action for autoformat and lint
chanwutk Oct 6, 2021
075ec0a
add type checking
chanwutk Oct 6, 2021
d71ea01
ignore main and dev branch
chanwutk Oct 8, 2021
7588665
Update README.md: macOS dependencies
chanwutk Oct 8, 2021
a03efef
Add typings and move class/function comment inside or as docstring (#7)
chanwutk Oct 14, 2021
aa2773a
fix comment
chanwutk Oct 15, 2021
af8f451
Optimize video recognition (#6)
chanwutk Nov 2, 2021
5a0f13b
Rebase: scenic_dev (#22)
chanwutk Mar 7, 2022
d832ef3
add objects heading to two dataframe inserted into database
XinyiJi1 Mar 11, 2022
5b27df8
add objects heading to two dataframe inserted into database
XinyiJi1 Mar 11, 2022
55ef6ac
squash graph
chanwutk Mar 7, 2022
c86d4b4
move all the benchmarks
chanwutk Mar 8, 2022
7954e4e
fix rebase error
chanwutk Mar 13, 2022
cd017ee
Automated lint and format fixes
Mar 13, 2022
6bcbea5
computed heading
yousefh409 Mar 21, 2022
9e8f1da
fixed get_cam, and set up nuscenes data with scenic equivelants
yousefh409 Mar 21, 2022
72c1ee7
cleared output
yousefh409 Mar 21, 2022
b96dc40
Road network ingestion (#28)
eeeeenchanted Mar 30, 2022
7b1bc5d
Item heading (#30)
XinyiJi1 Apr 1, 2022
7f0b6d7
Fix bugs from graph rebase (#31)
chanwutk Apr 2, 2022
7e1913d
clean up ipynb (#32)
chanwutk Apr 2, 2022
7d98825
Redo: Frank's update requirements.txt (#34)
chanwutk Apr 4, 2022
c25a25c
Redo: Yousef's added some road network related scenic queries (#35)
chanwutk Apr 4, 2022
93018ae
add poetry support (#36)
chanwutk Apr 4, 2022
6da12ea
Use poetry in github action (#37)
chanwutk Apr 5, 2022
a039c84
Road network ingest: edit table schema & config to run on remote (#38)
eeeeenchanted Apr 7, 2022
fea0e44
prioritize adding camera (#40)
chanwutk Apr 8, 2022
35f4af8
New API Overlay trajectory (#41)
yousefh409 Apr 10, 2022
a4c8857
add base query for the case when no cameras are specified (#42)
YongmingFrankGe Apr 14, 2022
2d9d299
Parse lambda to SQL expression (#43)
chanwutk Apr 14, 2022
518956b
github action: use script (#44)
chanwutk Apr 14, 2022
aae3f21
Query Testing (#45)
yousefh409 Apr 15, 2022
8a65a86
fix the import_tables and export_tables to import database (#46)
XinyiJi1 Apr 15, 2022
a8a7ba3
split scenic queries (#47)
chanwutk Apr 15, 2022
d756005
Cleanup ipynb recursively (#49)
chanwutk Apr 15, 2022
0fde94a
Clean up Errors (#50)
chanwutk Apr 16, 2022
957dffb
Fixed Heading (#51)
yousefh409 Apr 16, 2022
00b875a
fix string type (#53)
chanwutk Apr 18, 2022
9f499d5
Fix Timestamp Store (#54)
YongmingFrankGe Apr 19, 2022
2f3a349
Parse any lambda/single-line-function for filter (#55)
chanwutk Apr 20, 2022
53bf4f7
Add tests (#56)
chanwutk Apr 20, 2022
2004b3d
github-action: reorganize actions (#58)
chanwutk Apr 20, 2022
d90870e
add queries to implement for scenic_equivelants, fig10, fig11, fig12 …
YongmingFrankGe Apr 20, 2022
7031073
Clean up Flake8 errors (#59)
chanwutk Apr 20, 2022
94b9e51
add exclude() (#62)
chanwutk Apr 21, 2022
d422ee7
move flake8 to format (#63)
chanwutk Apr 21, 2022
12a143b
implement get_X function (#60)
jimlinntu Apr 21, 2022
db5cce0
Fig 13141516 queries (#64)
YongmingFrankGe Apr 21, 2022
8023cb2
fix divide str (#65)
chanwutk Apr 21, 2022
1d05228
add python requirement in readme (#66)
chanwutk Apr 21, 2022
e498486
facingRelative() and roadDirection() SQL functions (#67)
yousefh409 Apr 21, 2022
f730908
Add intersection (#69)
eeeeenchanted Apr 21, 2022
46fb61a
run test and check on PR (#71)
chanwutk Apr 22, 2022
b36a8c7
geoContained() and viewAngle() SQL functions (#70)
yousefh409 Apr 22, 2022
6fd81ef
filter with multiple objects (#68)
chanwutk Apr 22, 2022
c7e138f
lambda stuff for viewAngle() and contained() (#72)
yousefh409 Apr 22, 2022
a9fbb00
Group files into modules (#74)
chanwutk Apr 22, 2022
0b573d4
fig-14 (#75)
chanwutk Apr 22, 2022
f237205
clean up github action (#77)
chanwutk Apr 22, 2022
d01e2ce
Remove POSTGRES_MACROS (#78)
chanwutk Apr 22, 2022
c148a9a
get y sql (#80)
ByronHsu Apr 22, 2022
e846138
Direction head filter2 (#81)
yousefh409 Apr 22, 2022
625cc2f
Add facingRelative and roadDirection sql functions to frontend transl…
YongmingFrankGe Apr 22, 2022
9d104dd
Get x and get y (#82)
YongmingFrankGe Apr 22, 2022
9916578
fix type-checking errors (#83)
chanwutk Apr 23, 2022
c8f4414
Cache poetry's virtual environment for faster Github Action (#84)
chanwutk Apr 23, 2022
4e017dc
Remove unused functions (#85)
chanwutk Apr 23, 2022
39ad409
distance() and convert_camera() sql functions (#87)
yousefh409 Apr 23, 2022
097de91
Add world's operators (#86)
chanwutk Apr 23, 2022
9065feb
fix camera table naming used in queries (#88)
YongmingFrankGe Apr 23, 2022
f1a6132
fix database typings + use singleton (#89)
chanwutk Apr 23, 2022
543f5b7
clean up ci and modify readme (#90)
chanwutk Apr 23, 2022
65ea24b
fix readme (#91)
chanwutk Apr 23, 2022
95a94e4
Enable quick data ingestion (#92)
YongmingFrankGe Apr 24, 2022
fda9ea2
Test fig10 (#93)
YongmingFrankGe Apr 26, 2022
a481107
fix how to reset database (#94)
YongmingFrankGe Apr 26, 2022
d914b3b
fix fig 10 db reset after merge (#95)
YongmingFrankGe Apr 26, 2022
404bcde
Fix query 10 and query 11 (#97)
YongmingFrankGe Apr 27, 2022
80c93bb
reduce the number of camera joins (#98)
chanwutk Apr 27, 2022
58008d1
fig 12 working (#99)
YongmingFrankGe Apr 28, 2022
2d3d13e
fig 13 runnable (#100)
YongmingFrankGe Apr 28, 2022
9e06a58
Road direction (#101)
yousefh409 Apr 28, 2022
d3c8242
Heading fixes (#103)
yousefh409 May 6, 2022
3253ddc
Use psycopg2-binary (#106)
chanwutk May 30, 2022
3fc6351
Clean up old implementation (#107)
chanwutk May 30, 2022
c1a669d
Heading fixes (#105)
yousefh409 Jun 1, 2022
15d6448
Split export and import table (#109)
chanwutk Jun 1, 2022
8378533
update dependencies (#110)
chanwutk Jun 1, 2022
be742bf
Clean up utils (#111)
chanwutk Jun 1, 2022
6676395
Extract experiment data (#112)
chanwutk Jun 3, 2022
cce45fc
Fix camera heading (#113)
chanwutk Jun 3, 2022
378e5c9
Yousef's scenic_query_fixes (#114)
chanwutk Jun 4, 2022
9c79e49
Ask for database port (#115)
chanwutk Jun 4, 2022
1e3277f
Fixes for Figure 12 Query (#116)
yousefh409 Jun 7, 2022
f6842cc
fix fig12 road_direction query (#117)
YongmingFrankGe Jun 7, 2022
f88d4ed
fig14 runnable (#118)
YongmingFrankGe Jun 8, 2022
65d3c25
Camera translation (#119)
chanwutk Jun 8, 2022
a2e2ecd
remove scenic_generate_df.py (#120)
chanwutk Jun 8, 2022
f09517e
Fig14 investigate (#123)
YongmingFrankGe Jun 10, 2022
af29666
add visit_Str to support obj.object_type == 'vehicle.car' (#125)
chanwutk Jun 10, 2022
0871db7
Scenic benchmark (#124)
chanwutk Jun 10, 2022
c513c7b
clean up (#126)
chanwutk Jun 10, 2022
517c795
Road query (#127)
chanwutk Jun 10, 2022
b862329
Camera Headings (#122)
yousefh409 Jun 10, 2022
06650ba
fixing fig-13 (#121)
chanwutk Jun 10, 2022
3ac01dc
fix small typo in facingRelative (#129)
YongmingFrankGe Jun 11, 2022
ba22adf
Fig-13 fix (#128)
chanwutk Jun 15, 2022
d360fec
data path (#134)
chanwutk Jun 15, 2022
a284553
Check for testing coverage and upload Codecov result (#135)
chanwutk Jun 15, 2022
992e8e5
Fig15 investigate (#132)
chanwutk Jun 21, 2022
73cc948
Absolute Camera Translation + Some Other Fixes (#137)
yousefh409 Jun 25, 2022
8d80280
Add mobilitydb to Github Action (#136)
chanwutk Jun 26, 2022
6836029
ingest road network to github action (#138)
chanwutk Jun 30, 2022
50caeff
Add fig-13 benchmark to autotest (#139)
chanwutk Jun 30, 2022
5c4d09c
Add fig-14 to auto test (#140)
chanwutk Jul 1, 2022
b4825a0
Add fig-15 to auto test (#141)
chanwutk Jul 1, 2022
0188005
fix query in fig-14 (#142)
chanwutk Jul 1, 2022
f61bac4
Figure 12 Fixed (#143)
yousefh409 Jul 6, 2022
66793a5
remove QueryType (#145)
chanwutk Jul 7, 2022
de82e87
Fig16 query (#144)
chanwutk Jul 7, 2022
c0400a4
ingest data (#149)
chanwutk Jul 15, 2022
b611eac
add image data (#153)
chanwutk Jul 21, 2022
285cb2e
Overlay Trajectory (#148)
yousefh409 Jul 21, 2022
3b03769
World Schema (#152)
chanwutk Jul 27, 2022
02c2c04
Attributes (#154)
yousefh409 Aug 1, 2022
c7359fe
Optimized functions (#155)
yousefh409 Aug 2, 2022
cbdff52
Optimized Contains (#156)
yousefh409 Aug 4, 2022
1c478ae
test on multiple python versions (#166)
chanwutk Sep 16, 2022
fa4e994
update pyproject.toml (#167)
chanwutk Sep 16, 2022
21efa15
optimize minDistance (#159)
chanwutk Sep 24, 2022
9577e71
fix mypy and do not cache dependencies (#171)
chanwutk Sep 24, 2022
2034cba
fix (#172)
chanwutk Sep 24, 2022
ca1b5be
clean up notebook and road (#179)
chanwutk Oct 5, 2022
f2e4c65
Video Processing Plan (#162)
chanwutk Aug 6, 2023
0eb6282
Scenic Equivalents + Ingestion Fixes (#247)
yousefh409 Aug 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mamba activate apperception
1 change: 1 addition & 0 deletions .env.leave
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mamba deactivate
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
ignore =
# let black handles line length
E501,
# let black handles spaces between colon (list slicing)
E203,
# let black handles line break before binary operator
W503,
# multiple '#' leading a line comment is ok
E266,
# module-level import not on top of file is ok
E402
54 changes: 54 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Type Check
on:
push:

jobs:
check:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10.6'

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

# - name: Cache Poetry virtualenv
# uses: actions/cache@v3
# id: cached-poetry-dependencies
# with:
# path: .venv
# key: poetry-venv-${{ runner.os }}-py3.10-${{ hashFiles('**/poetry.lock') }}

- name: Install Dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction

- name: Check Python Version
run: poetry run python --version

- name: Check Installed Packages
run: poetry run pip list

- name: Type Check with mypy
if: always()
run: |
poetry run mypy apperception || true
(yes | poetry run mypy --install-types apperception) || true
poetry run mypy apperception

- name: Type Check with pyright
if: always()
run: poetry run pyright apperception
env:
PYRIGHT_PYTHON_FORCE_VERSION: latest
68 changes: 68 additions & 0 deletions .github/workflows/clean-up-and-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Clean Up and Format
on:
push:
branches-ignore:
- 'main'
- 'dev'

jobs:
clean-up:
name: Clean Up Python Notebooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Cleanup ipynb output
run: |
pip install --upgrade pip
pip install nbconvert
python -m jupyter nbconvert --clear-output --inplace benchmarks/**/*.ipynb benchmarks/*.ipynb
python -m jupyter nbconvert --clear-output --inplace scripts/**/*.ipynb scripts/*.ipynb
python -m jupyter nbconvert --clear-output --inplace playground/**/*.ipynb playground/*.ipynb

- name: Commit clean up changes
run: ./scripts/commit-and-push.sh "[CI] cleanup python notebooks"

format:
name: Format and Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Dependencies
run: |
pip install --upgrade pip
pip install autoflake autopep8 black isort flake8

- name: Fix lint with autoflake
run: python -m autoflake apperception optimized_ingestion

- name: Fix lint with autopep8
run: python -m autopep8 apperception optimized_ingestion

- name: Format with black
run: python -m black --config pyproject.toml apperception

- name: Sort imports with isort
run: python -m isort apperception optimized_ingestion

- name: Commit formatted changes
run: ./scripts/commit-and-push.sh "[CI] format"

- name: Analyze the code with flake8
if: always()
run: python -m flake8 apperception optimized_ingestion --statistics
82 changes: 82 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Generate Videos
on:
push:

jobs:
generate-videos:
name: Generate Videos
runs-on: ubuntu-latest
services:
mobilitydb:
image: mobilitydb/mobilitydb:14-3.2-1
ports:
- 25432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}
submodules: recursive

- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: none
cache-downloads: true

- name: Check Python Versions
shell: micromamba-shell {0}
run: |
python --version
python3 --version
which python
which python3
which pip
which pip3
which poetry

- name: Install Dependencies
shell: micromamba-shell {0}
run: poetry install --no-interaction --without dev --with test

- name: Install lap (Hack)
shell: micromamba-shell {0}
run: |
pip install --upgrade pip
pip install lap

- name: Check Installed Packages
shell: micromamba-shell {0}
run: pip list

- name: Extend MobilityDB with User-Defined functions
shell: micromamba-shell {0}
run: |
pushd pg_extender
mv install.sql install.sql.bak
python ../scripts/generate_pg_extender.py
cat install.sql
psql -h localhost -p 25432 -d mobilitydb -U docker -c "SET client_min_messages TO WARNING;" -c "\i install.sql;"
mv install.sql.bak install.sql
popd
env:
PGPASSWORD: docker

- name: Ingest data
shell: micromamba-shell {0}
run: python ./scripts/ingest_road.py
env:
AP_PORT: 25432

- name: Generate Image data
shell: micromamba-shell {0}
run: python examples/inference_pipeline.py

- name: Commit generated examples
run: ./scripts/commit-and-push-if-latest.sh "[CI] generate video examples"
84 changes: 84 additions & 0 deletions .github/workflows/test-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Test Pipeline
on:
push:

jobs:
test-pipeline:
name: Test Pipeline
runs-on: ubuntu-latest
services:
mobilitydb:
image: mobilitydb/mobilitydb:14-3.2-1
ports:
- 25440:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT || github.token }}
submodules: recursive

- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: none
cache-downloads: true

- name: Check Python Versions
shell: micromamba-shell {0}
run: |
python --version
python3 --version
which python
which python3
which pip
which pip3
which poetry

- name: Install Dependencies
shell: micromamba-shell {0}
run: poetry install --no-interaction --without dev --with test

- name: Install lap (Hack)
shell: micromamba-shell {0}
run: |
pip install --upgrade pip
pip install lap

- name: Check Installed Packages
shell: micromamba-shell {0}
run: pip list

- name: Extend MobilityDB with User-Defined functions
shell: micromamba-shell {0}
run: |
pushd pg_extender
python ../scripts/generate_pg_extender.py
cat install.sql
psql -h localhost -p 25440 -d mobilitydb -U docker -c "SET client_min_messages TO WARNING;" -c "\i install.sql;"
popd
env:
PGPASSWORD: docker

- name: Ingest data
shell: micromamba-shell {0}
run: |
python ./scripts/ingest_road.py
env:
AP_PORT: 25440

- name: Generate Image data
shell: micromamba-shell {0}
run: python scripts/fake-images.py

- name: Unit Test
shell: micromamba-shell {0}
run: pytest tests-pipeline
env:
AP_PORT: 25440
Loading