Skip to content

Commit f44a5f8

Browse files
chanwutkGithub Actions BotYongmingFrankGeeeeeenchantedjimlinntu
authored
Migrate to Spatialyze (#3)
* add-torch * upgrade pip before installing dependencies * expand import * * indent with spaces * add Github Action for autoformat and lint * add type checking * ignore main and dev branch * Update README.md: macOS dependencies * Add typings and move class/function comment inside or as docstring (#7) * add typings + move comments to docstring * fix error in typing * do not install type for mypy * fix type error * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * fix comment * Optimize video recognition (#6) * add yolov5 * ignore yolo folders and update setup * yolov5 works with apperception * remove printing/saving options from yolov5-deepsort * remove TypedDict to support python 3.7 * add yolov4 back as an option for tracking * do not drop camera and world table everytime we execute; do not add same camera when execute multiple times. * use BoundingBox as object * Add interface for object recognition on a crop of video. * ignore .idea * enable recognition parts of frame * run inference once when using gpu * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * Rebase: scenic_dev (#22) * set up initial test framework for scenic store * Use mongoDB for quick query in nuScenes dataset * Add box class * Update scenic_recognize to return two tables as discussed * scenic_recognize pass in a list of filenames & add frame num * Save object and camera to database * fix front end metadata view for scenic tables, query for trajectories and geo info works fine as prototyppe * write skeleton for the logic of overlay, most importantly the helper functions needed; return the trajectory now in spatial temporal form * export direct export and import tables from postgres * delete contaminated file * Remove frameId from trajectory table * transform 3d to 2d * fix a wrong tag and delete mongoclient * XinyiJi1: Doverlay, with bug of sql * fix bug * remove scenic_* prefix; prepare for combining the original and scenic world * replace world with scenic_world * clean up util * clean up video_util.py * clean up * fix errors from rebase * clean up insert_general_trajectory * Automated lint and format fixes * indent using spaces * clean up * add support for directly import all mini dataset, have uploaded the data to drive + delete jupyter for mere + fix bug Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: eeeeenchanted <[email protected]> Co-authored-by: Jim Lin <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * add objects heading to two dataframe inserted into database * add objects heading to two dataframe inserted into database * squash graph * move all the benchmarks * fix rebase error * Automated lint and format fixes * computed heading * fixed get_cam, and set up nuscenes data with scenic equivelants * cleared output * Road network ingestion (#28) * ingest road network info * Automated lint and format fixes * allow users to not drop table Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * Item heading (#30) * add the item heading to database * add the item heading to database * add the item heading to database * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * Fix bugs from graph rebase (#31) * fix graph rebase * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * clean up ipynb (#32) * clean up ipynb * split files * add output * Automated ipynb cleanup Co-authored-by: Github Actions Bot <[email protected]> * Redo: Frank's update requirements.txt (#34) * clean up property in video_contxt * update pip install requirements for the execution of new_world.py * fix merge conflict Co-authored-by: YongmingFrankGe <[email protected]> * Redo: Yousef's added some road network related scenic queries (#35) * clean up property in video_contxt * update pip install requirements for the execution of new_world.py * added some road network related scenic queries * Automated lint and format fixes Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: yousefh409 <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * add poetry support (#36) * Use poetry in github action (#37) * use poetry in github action * fix * use poetry * add pyright * Road network ingest: edit table schema & config to run on remote (#38) * Add foreign key & config to run on remote * Automated ipynb cleanup Co-authored-by: Github Actions Bot <[email protected]> * prioritize adding camera (#40) * New API Overlay trajectory (#41) * implemented overlay_trajectory function * fixed bugs with transformation and camera_config * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * add base query for the case when no cameras are specified (#42) * add base query for the case when no cameras are specified * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * Parse lambda to SQL expression (#43) * add new-api-scenic and test parse * add new_decompile * add predicate in new world * Automated lint and format fixes * support multiple ast.Compare for predicate * Automated lint and format fixes * add road_direction * Automated ipynb cleanup * Automated lint and format fixes Co-authored-by: Jim Lin <[email protected]> Co-authored-by: Byron <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * github action: use script (#44) * use script * change permission * do not install jupyter in CI * Query Testing (#45) * fixed bug with overlay_trajectory * fixed filter_relative_pred's use of trajCentroids * added testing suite and verified that filter_relative_to_type functioning as expected * merged * Automated lint and format fixes Co-authored-by: Github Actions Bot <[email protected]> * fix the import_tables and export_tables to import database (#46) * fix the import_tables and export_tables to import database * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * split scenic queries (#47) * Cleanup ipynb recursively (#49) * modify * modify 2 * clean up recursively * modify all * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Clean up Errors (#50) * clean up errors * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Fixed Heading (#51) * fixed camera_heading input and added filter_distance_to_type * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix string type (#53) * Fix Timestamp Store (#54) * fix the use of timestamps in cameras and trajectory * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Parse any lambda/single-line-function for filter (#55) * add predicate and custom function * parse lambda and support custom function * clean up * format * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Add tests (#56) * github-action: reorganize actions (#58) * add queries to implement for scenic_equivelants, fig10, fig11, fig12 (#57) * add queries to implement for scenic_equivelants, fig10, fig11, fig12 * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Clean up Flake8 errors (#59) * clean up flake8 errors * clean up * use --only dev * clean up * clean up * clean up * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * add exclude() (#62) * add exclude() * style: [CI] cleanup python notebooks * style: [CI] format * clean up Co-authored-by: Github Actions Bot <[email protected]> * move flake8 to format (#63) * move flake8 to format * rename * implement get_X function (#60) * Fig 13141516 queries (#64) * write queries for fig 13, 15 and fix 12 * fix the function import from apperception utils * fix divide str (#65) * add python requirement in readme (#66) * facingRelative() and roadDirection() SQL functions (#67) * added roadDirection and facingRelative functions * fixed bug with roadDirection and facingRelative * Add intersection (#69) * Add foreign key & config to run on remote * Add intersection * Automated ipynb cleanup * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * run test and check on PR (#71) * geoContained() and viewAngle() SQL functions (#70) * add function setup for contained and view angle, fix syntax in the query for fig 12 * implemented geoContained() and viewAngle() SQL functions Co-authored-by: YongmingFrankGe <[email protected]> * filter with multiple objects (#68) * filter with multiple objects * style: [CI] cleanup python notebooks * style: [CI] format * clean up * predicate function have specific names for camera table * style: [CI] cleanup python notebooks * style: [CI] format * convert_camera should accept 3 arguments * fix test * test * clean up * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * lambda stuff for viewAngle() and contained() (#72) * added lambda interpretations for sql functions * style: [CI] format Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * Group files into modules (#74) * group files into modules * fix import errors * style: [CI] cleanup python notebooks * style: [CI] format * fix test * fix ci Co-authored-by: Github Actions Bot <[email protected]> * fig-14 (#75) * fig-14 * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * clean up github action (#77) * Remove POSTGRES_MACROS (#78) * remove POSTGRES_MACROS * clean up ci * get y sql (#80) * Direction head filter2 (#81) * added egoHeading and camHeading stuff * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * Add facingRelative and roadDirection sql functions to frontend translation (#73) * add translation for facingRelative and road_direction, also fix queries * style: [CI] format * style: [CI] format * rename facingRelative to facing_relative to preserve the convention * style: [CI] format * fix test failures Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * Get x and get y (#82) * add get x ang get y to front end * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix type-checking errors (#83) * fix: mypy errors * fix pyright errors * style: [CI] format * style: [CI] cleanup python notebooks * fix linting errors * fix pyright errors * fix mypy Co-authored-by: Github Actions Bot <[email protected]> * Cache poetry's virtual environment for faster Github Action (#84) * cache venv * update poetry.lock * check cache * do no check cache * Remove unused functions (#85) * remove unused functions * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * distance() and convert_camera() sql functions (#87) * convertCamera() and distance() SQL functions implemented * implemented distance() lambda functions, and altered one of convert_camera() * style: [CI] format * fixed convert_camera test * fixed convert_camera test * fixed convert_camera test Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Yongming Ge <[email protected]> * Add world's operators (#86) * exclude, union, intersect, symmetric diff, add camera * ci: on push * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Yongming Ge <[email protected]> * fix camera table naming used in queries (#88) * fix database typings + use singleton (#89) * fix database typings + use singleton * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * clean up ci and modify readme (#90) * fix readme (#91) * Enable quick data ingestion (#92) * simplify data ingestion process for query testing * rename ingest data to ingest scenic data * rename ingest data to ingest scenic data * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Test fig10 (#93) * fix translation of attribute, users don't know the backend attributes * run test query * style: [CI] cleanup python notebooks * style: [CI] format * fix front end attribute * fix arbitrary attribute mapping Co-authored-by: Github Actions Bot <[email protected]> * fix how to reset database (#94) * fix how to reset database * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * fix fig 10 db reset after merge (#95) * Fix query 10 and query 11 (#97) * fig 10, fig 11 runnable without road_direction * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * reduce the number of camera joins (#98) * fig 12 working (#99) * fig 12 working * style: [CI] cleanup python notebooks * style: [CI] format * fix lint * fix type check Co-authored-by: Github Actions Bot <[email protected]> * fig 13 runnable (#100) * fig 13 runnable * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Road direction (#101) * added indexes for road direction and slight optimization to roadDirection() * optimized roadDirection * fixed lint issue * made commented fixes * uncommented roadDirection line in fig10 * Heading fixes (#103) * fixed viewAngle() * more heading fixes * style: [CI] format * fixed camera_heading calc * style: [CI] format * camera heading fixed * slight bug fixed * fixed viewAngle * switched over to math.degres * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Use psycopg2-binary (#106) * use psycopg2-binary * remove new_readme.md * Clean up old implementation (#107) * move legacy world implementation * move useful functions to utils * update pyproject * mypy type error * move views to data_types * fix test error * style: [CI] format * do not import from module * move layers and mono_depth_estimator * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Heading fixes (#105) * fixed and refactored the overlay_trajectory function * updated quick ingestion files with most recent data * updated overlay_trajectory function with mode that shows headings and road directions * overlay_trajectory bug fixed * roadCoords() sql function * overlaying road (still needs to be fixed) * updated scenic_generate_df as well as convertCamera and viewAngle SQL functions to use a counterclockwise heading rather than a clockwise one * drop function in roadDirection.sql as well * some refactoring * fix typing Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * Split export and import table (#109) * split export and import table * style: [CI] format * fix typing * rename Co-authored-by: Github Actions Bot <[email protected]> * update dependencies (#110) * Clean up utils (#111) * move video_utils to legacy * move scenic_util to legacy * style: [CI] format * fix test * style: [CI] format * fix pyright error * style: [CI] format * fix mypy error Co-authored-by: Github Actions Bot <[email protected]> * Extract experiment data (#112) * extract experiment data * style: [CI] cleanup python notebooks * ingest with notebook * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Fix camera heading (#113) * extract experiment data * style: [CI] cleanup python notebooks * ingest with notebook * update camera heading * style: [CI] cleanup python notebooks * clean up * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Yousef's scenic_query_fixes (#114) * fig12 now returning results * style: [CI] cleanup python notebooks * made some fixes, and took a look at the statistics of missing results * Updated roadDirection() SQL function. Query still not working completley as expected * fixed contained() function * fix typing * update fig-12 * style: [CI] cleanup python notebooks * style: [CI] format * get_id_and_time simple solution for debugging * style: [CI] format * add get id time and camid * extract annotations from full dataset * style: [CI] cleanup python notebooks * add filenames and camId to the hard fix * clear cell output to reduce confusion * style: [CI] format * style: [CI] cleanup python notebooks * scenic_generate_df updated with north heading convention * update roadDirection and generated query for join * style: [CI] format Co-authored-by: yousefh409 <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: YongmingFrankGe <[email protected]> * Ask for database port (#115) * ask for port * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Fixes for Figure 12 Query (#116) * filtering for only timestamps where condition is satisfied * see what predicate not being satsified for missing images * style: [CI] cleanup python notebooks * roadDirection() fixed and barley any images missing * style: [CI] format * style: [CI] cleanup python notebooks * fixed viewAngle() and updated data * sameRegion() sql function * style: [CI] format * test errors fixed * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix fig12 road_direction query (#117) * fix fig12 query road_direction * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * fig14 runnable (#118) * fig14 runnable * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * Camera translation (#119) * get camera position * style: [CI] format * add camera position * style: [CI] cleanup python notebooks Co-authored-by: yousefh409 <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * remove scenic_generate_df.py (#120) * Fig14 investigate (#123) * working fig14, just need to fix the query and facingRelative * style: [CI] cleanup python notebooks * change facing relative to the opposite, fig14 still passes * style: [CI] cleanup python notebooks * cleanup: facingRelative.sql Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * add visit_Str to support obj.object_type == 'vehicle.car' (#125) * add visit_Str to support obj.object_type == 'vehicle.car' * support Num * style: [CI] format Co-authored-by: Jim Lin <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * Scenic benchmark (#124) * add get_id_and_time, hard coded but need it for benchmark * style: [CI] cleanup python notebooks * style: [CI] format * query for time and id instead of just id * add road_direction back * style: [CI] cleanup python notebooks * add get_filenames_by_itemids_and_timestamps * style: [CI] format * fix convertCamera.sql bug * fix fig11, fig12 pedestrian * fix fig13 cars to car * improve roadDirection function * add WIP debuging process into fig-13.ipynb * add road direction debug thought process in Fig-13 * use 700-images csv * add multiple retrieval * style: [CI] cleanup python notebooks * remove duplicate methods * Delete test_get_filenames_by_itemids_and_timestamps.py * revert fig-13 Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Jim Lin <[email protected]> Co-authored-by: Byron <[email protected]> * clean up (#126) * Road query (#127) * add new-api-scenic and test parse * add new_decompile * add predicate in new world * Automated lint and format fixes * support multiple ast.Compare for predicate * Automated lint and format fixes * add road_direction * add lanesection queries * fix get heading sql * Automated ipynb cleanup * reformat the road direction query and add ASC in order by * Automated lint and format fixes Co-authored-by: Jim Lin <[email protected]> Co-authored-by: Byron <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * Camera Headings (#122) * fixed getting absolute camera position * slight error fixed * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * fixing fig-13 (#121) * fix small typo in facingRelative (#129) * Fig-13 fix (#128) * drop sql funcition before create * update dependencies * objects contained in the same intersection * style: [CI] format * style: [CI] cleanup python notebooks * test * format Co-authored-by: Github Actions Bot <[email protected]> * data path (#134) * Check for testing coverage and upload Codecov result (#135) * run codecov * add codecov secret * fix * generate coverage file and ignore * ignore legacy code * ignore __init__.py * Fig15 investigate (#132) * fig-15 investigate, the query is correct and runnable, ahead might be the main function to look at for debugging * style: [CI] cleanup python notebooks * style: [CI] format * fix fig15 to match scenic output with one extra condition * style: [CI] cleanup python notebooks * add test for ahead Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * Absolute Camera Translation + Some Other Fixes (#137) * timestamp attribute added to bbox table, and contained() function implemented for stbox types * updated bbox csv data and updated fig12 query * set up absolute camera translation * same region fix * contained() margin of error * contained_margin() implemented, fig12 mostly good to go * tests * Add mobilitydb to Github Action (#136) * add docker ci * separate commands * get log * test * print logs * print logs * wait for mobilitidb to finish setup * fix * wait * add password * wait in command * setup mobilitydb first * setup * use service * ingest tables in github action * run python with poetry * style: [CI] format * style: [CI] cleanup python notebooks * fix circular dependency * fix typo * add database test * remove import pytest * fix sql error when receiving and empty result * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: YongmingFrankGe <[email protected]> * ingest road network to github action (#138) * ingest road to github action * add test * fix error * commit * test ingest road * fix syntax * fix test * fix * fix * Add fig-13 benchmark to autotest (#139) * auto test fig 13 * run test * fix test * syntax * Add fig-14 to auto test (#140) * add fig 14 to auto test * fix * style: [CI] cleanup python notebooks * fix * fix Co-authored-by: Github Actions Bot <[email protected]> * Add fig-15 to auto test (#141) * add fig-15 * style: [CI] cleanup python notebooks * fix Co-authored-by: Github Actions Bot <[email protected]> * fix query in fig-14 (#142) * Figure 12 Fixed (#143) * translation attribute added * sql function apperception implementations updated * fig12 query updated * data ingestion files updated * fig12 test Co-authored-by: Github Actions Bot <[email protected]> * remove QueryType (#145) * remove QueryType * style: [CI] format * fix typing * test * fix * fix test * add overlapping condition * fix typo * fix Co-authored-by: Github Actions Bot <[email protected]> * Fig16 query (#144) * add fig16 query and make it runnable, need to be fixed with new query plan and lanetoright function * style: [CI] cleanup python notebooks * add customized sql function to find lanetoright * style: [CI] cleanup python notebooks * use laneToRight property for finding lanes with a lane to their right * style: [CI] cleanup python notebooks * test fig 16 * add test * fix Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * ingest data (#149) * ingest data * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * add image data (#153) * add images to ci * fix * update path * Overlay Trajectory (#148) * overlay_trajectory utils file created * overlay_trajectory() barebones functionality working * overlay_stats working * overlay_objects working * overlay_road working back to previous, still needs to be fixed * some updates * getting trajectory fixed * keep whole video working * overlay objects working for whole video * test error fixed * fixed typing * ingest data csv notebook * moved overlay_trajectory out of world.py * moved overlay_trajectory out of world.py * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * World Schema (#152) * world2 * world2 * predicate rework * add translations * style: [CI] cleanup python notebooks * style: [CI] format * add custom_fn * style: [CI] format * refactor custom functions * style: [CI] format * clean up * clean up * style: [CI] cleanup python notebooks * style: [CI] format * extract * style: [CI] cleanup python notebooks * update error * add min distance * style: [CI] cleanup python notebooks * style: [CI] format * translate to new query * style: [CI] cleanup python notebooks * translate * style: [CI] cleanup python notebooks * fig 15 * style: [CI] cleanup python notebooks * test figs * fix typing * style: [CI] format * fix test_world * fix test_overaly_trajectory * fix test * fig 13 * remove fn_to_sql Co-authored-by: Github Actions Bot <[email protected]> * Attributes (#154) * roadDirection for camera * function for the gen traj roadDirection attr complete * roadDirection for traj table * db changes finished * test fixed Co-authored-by: Github Actions Bot <[email protected]> * Optimized functions (#155) * add segmenttype attribute to db, in order for fast query * add segmenytpolygon index * minDistance optimized * fig13 updated with optimized Co-authored-by: Github Actions Bot <[email protected]> * Optimized Contains (#156) * optimized contains function * optimized fig12 * test on multiple python versions (#166) * update pyproject.toml (#167) * update * update * optimize minDistance (#159) * optimize minDistance * style: [CI] cleanup python notebooks * style: [CI] format * fix typing * style: [CI] format * normalize predicates in test * . * fix test_predicate * fix predicate * optimize data for test * update poetry.lock * fix test_predicate * update poetry check * fix test_contains_all * fix test_fig_15 * print * print dependencies * update poetry config Co-authored-by: Github Actions Bot <[email protected]> * fix mypy and do not cache dependencies (#171) * fix mypy * clean up * ls * ls * clean up * . * clean up * do not cache * fix (#172) * clean up notebook and road (#179) * Video Processor (#2) * fixed error with frame * add mapping algorithm * Ck/generate video (#163) * generate video * generate_videos * generate video * update poetry.lock * In View Filter Updated (#168) * fix for multiple intersections * detects if any part of the intersection is in view * Rework Pipeline (#161) * depth_to_3d * update ingestion pipeline * style: [CI] cleanup python notebooks * style: [CI] format * add monodepth2 and Yolov5_StrongSORT_OSNet as submodules * add tracker * runs object recognition without saving files * pipeline runs * rework Frame * update poetry.lock * rework pipeline * fix import * runnable pipeline * organize filters * update poetry.lock * github action * style: [CI] format * clean up import * style: [CI] format * run as module * update Yolov5_StrongSORT_OSNet * clean up * style: [CI] cleanup python notebooks * split filters * style: [CI] format * add classname * style: [CI] format * rename * style: [CI] format * add usecase filter * style: [CI] format * runnable * style: [CI] format * save video * style: [CI] format * add annotations to output video * clean up * style: [CI] format * run instruction * style: [CI] format * cache stage result * style: [CI] format * output depth video * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * update monodepth * style: [CI] format * update in_view: execute a single db query * style: [CI] format * Stopped Filter (#169) * stopped filter * make sure that close to intersection * updated main Co-authored-by: Github Actions Bot <[email protected]> * Fix 2d detection (#170) * run pipeline on all videos * style: [CI] format * print exception * fix * fix * print frames in yolo * fix * remove print in yolo * print * fix * style: [CI] format * fix * add video iterator * style: [CI] format * test decoding * test decoding Co-authored-by: Github Actions Bot <[email protected]> * remove mono_depth_estimator * update generate video * fix stop filter * fix test (#173) * fix test * style: [CI] cleanup python notebooks * style: [CI] format * fix * update test * print result * print * change mobilitydb version * update csvs * style: [CI] cleanup python notebooks * fix test Co-authored-by: Github Actions Bot <[email protected]> * column metadata (#174) * column metadata * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fixed problem with in view filter (#176) * fix inview (#177) * Update README.md * add segment mapping * add typing * add file doc string * ignore output * fix generate video * style: [CI] cleanup python notebooks * remove unused notebooks * add segment heading in the returned segment info * Calculate Depth from geo-spatial information (#181) * experiment * style: [CI] format * test * from 2d and road * style: [CI] format * remove overlay_road * geo depth estimation * style: [CI] format * fix mypy Co-authored-by: Github Actions Bot <[email protected]> * Estimate objects' depth with geo-spatial metadata (#183) * experiment * style: [CI] format * test * from 2d and road * style: [CI] format * remove overlay_road * geo depth estimation * style: [CI] format * fix mypy * Overlay Road segments (#182) * overlay road * style: [CI] format * overlay * style: [CI] cleanup python notebooks * style: [CI] format * union type * " around typing * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * add MonoDTR * remove MonoDTR submodule * Ck/tracker as module (#184) * remove yolo tracker * use apperception's yolo * clean up yolo tracker * cleanup: yolo module still breaks * style: [CI] format * use yolo from torch.hub * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * update yolo * style: [CI] format * fix typing * style: [CI] format * fix notebook * fix typing * style: [CI] format * fix import * style: [CI] format * fix test Co-authored-by: Github Actions Bot <[email protected]> * add conda environment * Merge Detection Estimation module (#185) * add helper functions for detection algorithm * style: [CI] format * algorithms necessary functions finish, integration testing not completely done * delete trailing lines * add test * finish all implementation of sample plan, unit tested through notebook * end to end flow succeed, integration testing ongoing * thorough run of videos * fix ego exit segment * fix small bug * fix detection problem after ego exit fix * style: [CI] format * add doc string * revert data files * . * typing * annotate typing * add necessary typing * style: [CI] format * add ego stop action * fix import * Integrate detection estimation to pipeline (#186) * . * style: [CI] format * split yolo and strongsort * add detection estimation * style: [CI] format * style: [CI] format * run detection estimation with pipeline * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix errors * fix error * clean up * style: [CI] format * detection estimation as stage * style: [CI] format * add detection_estimation to notebook * style: [CI] format * use logger instead of print * style: [CI] format * fix typing in python3.8 * style: [CI] format * clean up * style: [CI] format * add TODO for detection coversio * Add 3d calibration against the road segment (#187) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix flake errors * Update __init__.py Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * benchmark * fix LineString error + output trajectories for benchmark * style: [CI] format * performance benchmark * Detection Estimation: add 3D detection and output DetectionInfo (#189) * add 3d detection and DetectionInfo * style: [CI] format * fix numpy operations * update nb * style: [CI] format * document 3d detection dimensions * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> * fix algorithms with new discovery in segment lines (#188) * fix algorithms with new discovery in segment lines * style: [CI] format * include intersection in detection info so that it could be passed down * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * cleanup duplicate road segments * style: [CI] format * allow none uid * fix test * fix linting error * video with skipped frames * style: [CI] format * Construct segment trajectory (#191) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix bug in intersection extended lines * add stage of constructing segment trajectory * style: [CI] format * add docstring * fix docstring * style: [CI] format * fix function naming * style: [CI] format * fix import * style: [CI] format * typing * style: [CI] format * add complete story algorithm * style: [CI] format * initial push of the segment trajectory stage * style: [CI] format * integrate segment trajectory to pipeline (#192) * integrate to pipeline * style: [CI] format * fix type * run benchmark * style: [CI] format * clean up and update instructions * clean up playground * style: [CI] cleanup python notebooks * update dir * style: [CI] cleanup python notebooks * fix errors * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix lint error Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * add detection type annotation * fix detection estimation errors (#195) * fix detection estimation errors * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Add object type filter (#196) * add type filter * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Fix Detection Estimation segment mapping (#197) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * pruning testing of detection estimation (#199) * pruning testing of detection estimation * style: [CI] format * add type * style: [CI] format Co-authored-by: Apperception Service <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * Optimized mapping (#200) * new mapping * style: [CI] format * disable pruning and fix pipeline * fix detection estimation pipeline for new mapping * style: [CI] cleanup python notebooks * new mapping benchmark * clean up comments * style: [CI] cleanup python notebooks * style: [CI] format * enable cache in strongsort * style: [CI] format * add customized predicate for detection_estimation to prune detection, and add fig14 pipeline * style: [CI] cleanup python notebooks * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Apperception Service <[email protected]> * Fix road type (#201) * fix the pipeline notebook * benchmark on front cameras * fix road type * style: [CI] cleanup python notebooks --------- Co-authored-by: Apperception Service <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * Clean up duplicate ingest (#204) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> * Cleanup duplicate ingest (#206) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> * Cleanup duplicate ingest (#208) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format * fix polygon contains --------- Co-authored-by: Github Actions Bot <[email protected]> * Fix segment trajectory 3 (#207) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> * Fig13 end to end (#202) * fix the pipeline notebook * benchmark on front cameras * import cameras from pickle, load sort result to db * hardcode pipeline constructure * delete construction of pipeline in world, fix object type filter * working end to end * style: [CI] format * style: [CI] cleanup python notebooks * ndo changes * object_type_filter --------- Co-authored-by: Apperception Service <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> --------- Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Apperception Service <[email protected]> * Segment Trajectory with and without DetectionInfo (#205) (#209) * add helper functions for detection algorithm * style: [CI] format * algorithms necessary functions finish, integration testing not completely done * delete trailing lines * add test * finish all implementation of sample plan, unit tested through notebook * end to end flow succeed, integration testing ongoing * thorough run of videos * fix ego exit segment * fix small bug * fix detection problem after ego exit fix * style: [CI] format * add doc string * revert data files * . * typing * annotate typing * add necessary typing * style: [CI] format * add ego stop action * fix import * Integrate detection estimation to pipeline (#186) * . * style: [CI] format * split yolo and strongsort * add detection estimation * style: [CI] format * style: [CI] format * run detection estimation with pipeline * style: [CI] format * fix errors * fix error * clean up * style: [CI] format * detection estimation as stage * style: [CI] format * add detection_estimation to notebook * style: [CI] format * use logger instead of print * style: [CI] format * fix typing in python3.8 * style: [CI] format * clean up * style: [CI] format * add TODO for detection coversio * Add 3d calibration against the road segment (#187) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix flake errors * Update __init__.py * benchmark * fix LineString error + output trajectories for benchmark * style: [CI] format * performance benchmark * Detection Estimation: add 3D detection and output DetectionInfo (#189) * add 3d detection and DetectionInfo * style: [CI] format * fix numpy operations * update nb * style: [CI] format * document 3d detection dimensions * style: [CI] format * fix lint error * fix algorithms with new discovery in segment lines (#188) * fix algorithms with new discovery in segment lines * style: [CI] format * include intersection in detection info so that it could be passed down * style: [CI] format * fix lint error * cleanup duplicate road segments * style: [CI] format * allow none uid * fix test * fix linting error * video with skipped frames * style: [CI] format * Construct segment trajectory (#191) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix bug in intersection extended lines * add stage of constructing segment trajectory * style: [CI] format * add docstring * fix docstring * style: [CI] format * fix function naming * style: [CI] format * fix import * style: [CI] format * typing * style: [CI] format * add complete story algorithm * style: [CI] format * initial push of the segment trajectory stage * style: [CI] format * integrate segment trajectory to pipeline (#192) * integrate to pipeline * style: [CI] format * fix type * run benchmark * style: [CI] format * clean up and update instructions * clean up playground * style: [CI] cleanup python notebooks * update dir * style: [CI] cleanup python notebooks * fix errors * style: [CI] cleanup python notebooks * style: [CI] format * fix lint error * add detection type annotation * fix detection estimation errors (#195) * fix detection estimation errors * style: [CI] cleanup python notebooks * style: [CI] format * Add object type filter (#196) * add type filter * style: [CI] format * Fix Detection Estimation segment mapping (#197) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * pruning testing of detection estimation (#199) * pruning testing of detection estimation * style: [CI] format * add type * style: [CI] format * Optimized mapping (#200) * new mapping * style: [CI] format * disable pruning and fix pipeline * fix detection estimation pipeline for new mapping * style: [CI] cleanup python notebooks * new mapping benchmark * clean up comments * style: [CI] cleanup python notebooks * style: [CI] format * enable cache in strongsort * style: [CI] format * add customized predicate for detection_estimation to prune detection, and add fig14 pipeline * style: [CI] cleanup python notebooks * style: [CI] format --------- * Fix road type (#201) * fix the pipeline notebook * benchmark on front cameras * fix road type * style: [CI] cleanup python notebooks --------- * Clean up duplicate ingest (#204) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format --------- * RoadPolygonInfo: sort segment lines * style: [CI] format * clean up * from_tracking_3d * style: [CI] format * interpolate segment * Cleanup duplicate ingest (#206) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format --------- * Cleanup duplicate ingest (#208) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * map detection to segment * style: [CI] format * update notebook * use original images for videos * style: [CI] cleanup python notebooks * clean up * style: [CI] format * benchmark notebook * style: [CI] cleanup python notebooks * style: [CI] format * fix polygon contains --------- * Fix segment trajectory 3 (#207) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks * style: [CI] format --------- * Fig13 end to end (#202) * fix the pipeline notebook * benchmark on front cameras * import cameras from pickle, load sort result to db * hardcode pipeline constructure * delete construction of pipeline in world, fix object type filter * working end to end * style: [CI] format * style: [CI] cleanup python notebooks * ndo changes * object_type_filter --------- --------- Co-authored-by: YongmingFrankGe <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Yongming Ge <[email protected]> Co-authored-by: Apperception Service <[email protected]> * fix lint error * Ingest road network with location (#210) * ingest road with location * style: [CI] format * style: [CI] cleanup python notebooks --------- Co-authored-by: Github Actions Bot <[email protected]> * allow empty segmentline (#211) * Ingest road with city name (#212) * combine cities * style: [CI] format * ingest road with location * style: [CI] format * style: [CI] cleanup python notebooks * clean up * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> * fix query bug * style: [CI] cleanup python notebooks * Add segmenttype to mapping (#213) * add helper functions for detection algorithm * style: [CI] format * algorithms necessary functions finish, integration testing not completely done * delete trailing lines * add test * finish all implementation of sample plan, unit tested through notebook * end to end flow succeed, integration testing ongoing * thorough run of videos * fix ego exit segment * fix small bug * fix detection problem after ego exit fix * style: [CI] format * add doc string * revert data files * . * typing * annotate typing * add necessary typing * style: [CI] format * add ego stop action * fix import * Integrate detection estimation to pipeline (#186) * . * style: [CI] format * split yolo and strongsort * add detection estimation * style: [CI] format * style: [CI] format * run detection estimation with pipeline * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix errors * fix error * clean up * style: [CI] format * detection estimation as stage * style: [CI] format * add detection_estimation to notebook * style: [CI] format * use logger instead of print * style: [CI] format * fix typing in python3.8 * style: [CI] format * clean up * style: [CI] format * add TODO for detection coversio * Add 3d calibration against the road segment (#187) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix flake errors * Update __init__.py Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * benchmark * fix LineString error + output trajectories for benchmark * style: [CI] format * performance benchmark * Detection Estimation: add 3D detection and output DetectionInfo (#189) * add 3d detection and DetectionInfo * style: [CI] format * fix numpy operations * update nb * style: [CI] format * document 3d detection dimensions * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> * fix algorithms with new discovery in segment lines (#188) * fix algorithms with new discovery in segment lines * style: [CI] format * include intersection in detection info so that it could be passed down * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * cleanup duplicate road segments * style: [CI] format * allow none uid * fix test * fix linting error * video with skipped frames * style: [CI] format * Construct segment trajectory (#191) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix bug in intersection extended lines * add stage of constructing segment trajectory * style: [CI] format * add docstring * fix docstring * style: [CI] format * fix function naming * style: [CI] format * fix import * style: [CI] format * typing * style: [CI] format * add complete story algorithm * style: [CI] format * initial push of the segment trajectory stage * style: [CI] format * integrate segment trajectory to pipeline (#192) * integrate to pipeline * style: [CI] format * fix type * run benchmark * style: [CI] format * clean up and update instructions * clean up playground * style: [CI] cleanup python notebooks * update dir * style: [CI] cleanup python notebooks * fix errors * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix lint error Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * add detection type annotation * fix detection estimation errors (#195) * fix detection estimation errors * style: [CI] cleanup python notebooks * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Add object type filter (#196) * add type filter * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * Fix Detection Estimation segment mapping (#197) * fix polygon contains * style: [CI] format * fix postgis LineString[] typing * style: [CI] cleanup python notebooks Co-authored-by: Github Actions Bot <[email protected]> * pruning testing of detection estimation (#199) * pruning testing of detection estimation * style: [CI] format * add type * style: [CI] format Co-authored-by: Apperception Service <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * fix the pipeline notebook * benchmark on front cameras * Optimized mapping (#200) * new mapping * style: [CI] format * disable pruning and fix pipeline * fix detection estimation pipeline for new mapping * style: [CI] cleanup python notebooks * new mapping benchmark * clean up comments * style: [CI] cleanup python notebooks * style: [CI] format * enable cache in strongsort * style: [CI] format * add customized predicate for detection_estimation to prune detection, and add fig14 pipeline * style: [CI] cleanup python notebooks * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Apperception Service <[email protected]> * Fix road type (#201) * fix the pipeline notebook * benchmark on front cameras * fix road type * style: [CI] cleanup python notebooks --------- Co-authored-by: Apperception Service <[email protected]> Co-authored-by: Github Actions Bot <[email protected]> * finish final merge * add segment type to segmentmapping and segment poing * style: [CI] format * fix merge * delete ingest date csv * Keep SegmentMapping as type for query result * style: [CI] format * add type * style: [CI] format --------- Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Apperception Service <[email protected]> * creating both versions of the headingAtTimestamp function (#214) * update road ingest * style: [CI] cleanup python notebooks * update segment-tracking-results * style: [CI] cleanup python notebooks * Fig13 end to end (#216) * add helper functions for detection algorithm * style: [CI] format * algorithms necessary functions finish, integration testing not completely done * delete trailing lines * add test * finish all implementation of sample plan, unit tested through notebook * end to end flow succeed, integration testing ongoing * thorough run of videos * fix ego exit segment * fix small bug * fix detection problem after ego exit fix * style: [CI] format * add doc string * revert data files * . * typing * annotate typing * add necessary typing * style: [CI] format * add ego stop action * fix import * Integrate detection estimation to pipeline (#186) * . * style: [CI] format * split yolo and strongsort * add detection estimation * style: [CI] format * style: [CI] format * run detection estimation with pipeline * style: [CI] format Co-authored-by: Github Actions Bot <[email protected]> * fix errors * fix error * clean up * style: [CI] format * detection estimation as stage * style: [CI] format * add detection_estimation to notebook * style: [CI] format * use logger instead of print * style: [CI] format * fix typing in python3.8 * style: [CI] format * clean up * style: [CI] format * add TODO for detection coversio * Add 3d calibration against the road segment (#187) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix flake errors * Update __init__.py Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * benchmark * fix LineString error + output trajectories for benchmark * style: [CI] format * performance benchmark * Detection Estimation: add 3D detection and output DetectionInfo (#189) * add 3d detection and DetectionInfo * style: [CI] format * fix numpy operations * update nb * style: [CI] format * document 3d detection dimensions * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> * fix algorithms with new discovery in segment lines (#188) * fix algorithms with new discovery in segment lines * style: [CI] format * include intersection in detection info so that it could be passed down * style: [CI] format * fix lint error Co-authored-by: Github Actions Bot <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> Co-authored-by: Chanwut (Mick) Kittivorawong <[email protected]> * cleanup duplicate road segments * style: [CI] format * allow none uid * fix test * fix linting error * video with skipped frames * style: [CI] format * Construct segment trajectory (#191) * add to do of car_loc3d conversion * tested, including segment line in the road segment * add location calibration * style: [CI] format * fix bug in intersection extended lines * add stage of constructing segment trajectory * style: [CI] format * add docstring * fix docstring * style: [CI] format * fix function naming * style: [CI] format * fix import * style: [CI] format * typing * style: [CI] format * add complete story algorithm * style: [CI] format * initial push of the segment trajectory stage * style: [CI] format * integrate segment trajectory to pipeline (#192) * integrate to pipeline * style: [CI] format * fix type * run benchmark * style: [CI] format * clean up and update instructions * clean up playground * style: [CI] cleanup python notebooks * update dir * style: [CI] cleanup python notebooks * fix errors …
1 parent 490371a commit f44a5f8

File tree

348 files changed

+471967
-4286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+471967
-4286
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mamba activate spatialyze

.env.leave

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mamba deactivate

.flake8

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[flake8]
2+
ignore =
3+
# let black handles line length
4+
E501,
5+
# let black handles spaces between colon (list slicing)
6+
E203,
7+
# let black handles line break before binary operator
8+
W503,
9+
# multiple '#' leading a line comment is ok
10+
E266,
11+
# module-level import not on top of file is ok
12+
E402

.github/workflows/check.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Type Check
2+
on:
3+
push:
4+
5+
jobs:
6+
check:
7+
name: Type Check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
token: ${{ secrets.GH_PAT || github.token }}
13+
14+
- name: Set up Python 3.10
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.10.12'
18+
19+
- name: Install and configure Poetry
20+
uses: snok/install-poetry@v1
21+
with:
22+
version: 1.5.1
23+
virtualenvs-create: true
24+
virtualenvs-in-project: true
25+
installer-parallel: true
26+
27+
# - name: Cache Poetry virtualenv
28+
# uses: actions/cache@v3
29+
# id: cached-poetry-dependencies
30+
# with:
31+
# path: .venv
32+
# key: poetry-venv-${{ runner.os }}-py3.10-${{ hashFiles('**/poetry.lock') }}
33+
34+
- name: Install Dependencies
35+
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
36+
run: poetry install --no-interaction
37+
38+
- name: Check Python Version
39+
run: poetry run python --version
40+
41+
- name: Check Installed Packages
42+
run: poetry run pip list
43+
44+
# - name: Type Check with mypy
45+
# if: always()
46+
# run: |
47+
# poetry run mypy spatialyze || true
48+
# poetry run mypy --install-types --non-interactive spatialyze || true
49+
# poetry run mypy spatialyze
50+
51+
- name: Type Check with pyright
52+
if: always()
53+
run: poetry run pyright spatialyze
54+
env:
55+
PYRIGHT_PYTHON_FORCE_VERSION: latest
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Clean Up and Format
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'main'
6+
- 'dev'
7+
8+
jobs:
9+
clean-up:
10+
name: Clean Up Python Notebooks
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
token: ${{ secrets.GH_PAT || github.token }}
16+
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.10'
21+
22+
- name: Cleanup ipynb output
23+
run: |
24+
pip install --upgrade pip
25+
pip install nbconvert
26+
python -m jupyter nbconvert --clear-output --inplace benchmarks/**/*.ipynb benchmarks/*.ipynb
27+
python -m jupyter nbconvert --clear-output --inplace scripts/**/*.ipynb scripts/*.ipynb
28+
python -m jupyter nbconvert --clear-output --inplace playground/**/*.ipynb playground/*.ipynb
29+
30+
- name: Commit clean up changes
31+
run: ./scripts/commit-and-push.sh "[CI] cleanup python notebooks"
32+
33+
format:
34+
name: Format and Lint
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v3
38+
with:
39+
token: ${{ secrets.GH_PAT || github.token }}
40+
41+
- name: Set up Python 3.10
42+
uses: actions/setup-python@v4
43+
with:
44+
python-version: '3.10'
45+
46+
- name: Install Dependencies
47+
run: |
48+
pip install --upgrade pip
49+
pip install autoflake autopep8 black isort flake8
50+
51+
- name: Fix lint with autoflake
52+
run: python -m autoflake spatialyze optimized_ingestion
53+
54+
- name: Fix lint with autopep8
55+
run: python -m autopep8 spatialyze optimized_ingestion
56+
57+
- name: Format with black
58+
run: python -m black --config pyproject.toml spatialyze
59+
60+
- name: Sort imports with isort
61+
run: python -m isort spatialyze optimized_ingestion
62+
63+
- name: Commit formatted changes
64+
run: ./scripts/commit-and-push.sh "[CI] format"
65+
66+
- name: Analyze the code with flake8
67+
if: always()
68+
run: python -m flake8 spatialyze optimized_ingestion --statistics

.github/workflows/examples.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Generate Videos
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'main'
6+
- 'dev'
7+
8+
jobs:
9+
generate-videos:
10+
name: Generate Videos
11+
runs-on: ubuntu-latest
12+
services:
13+
mobilitydb:
14+
image: mobilitydb/mobilitydb:14-3.2-1
15+
ports:
16+
- 25432:5432
17+
options: >-
18+
--health-cmd pg_isready
19+
--health-interval 10s
20+
--health-timeout 5s
21+
--health-retries 5
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
with:
26+
token: ${{ secrets.GH_PAT || github.token }}
27+
submodules: recursive
28+
29+
- name: Setup Micromamba
30+
uses: mamba-org/setup-micromamba@v1
31+
with:
32+
environment-file: environment.yml
33+
init-shell: none
34+
cache-downloads: false
35+
36+
- name: Check Python Versions
37+
shell: micromamba-shell {0}
38+
run: |
39+
python --version
40+
python3 --version
41+
which python
42+
which python3
43+
which pip
44+
which pip3
45+
which poetry
46+
47+
- name: Install Dependencies
48+
shell: micromamba-shell {0}
49+
run: poetry install --no-interaction --without dev --with test
50+
51+
- name: Install lap (Hack)
52+
shell: micromamba-shell {0}
53+
run: |
54+
pip install --upgrade pip
55+
pip install lap
56+
57+
- name: Check Installed Packages
58+
shell: micromamba-shell {0}
59+
run: pip list
60+
61+
- name: Extend MobilityDB with User-Defined functions
62+
shell: micromamba-shell {0}
63+
run: |
64+
pushd pg_extender
65+
mv install.sql install.sql.bak
66+
python ../scripts/generate_pg_extender.py
67+
cat install.sql
68+
psql -h localhost -p 25432 -d mobilitydb -U docker -c "SET client_min_messages TO WARNING;" -c "\i install.sql;"
69+
mv install.sql.bak install.sql
70+
popd
71+
env:
72+
PGPASSWORD: docker
73+
74+
- name: Ingest data
75+
shell: micromamba-shell {0}
76+
run: python ./scripts/ingest_road.py
77+
env:
78+
AP_PORT: 25432
79+
80+
- name: Generate Image data
81+
shell: micromamba-shell {0}
82+
run: python examples/inference_pipeline.py
83+
84+
- name: Commit generated examples
85+
run: ./scripts/commit-and-push-if-latest.sh "[CI] generate video examples"

.github/workflows/test-pipeline.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Test Pipeline
2+
on:
3+
push:
4+
5+
jobs:
6+
test-pipeline:
7+
name: Test Pipeline
8+
runs-on: ubuntu-latest
9+
services:
10+
mobilitydb:
11+
image: mobilitydb/mobilitydb:14-3.2-1
12+
ports:
13+
- 25440:5432
14+
options: >-
15+
--health-cmd pg_isready
16+
--health-interval 10s
17+
--health-timeout 5s
18+
--health-retries 5
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
token: ${{ secrets.GH_PAT || github.token }}
24+
submodules: recursive
25+
26+
- name: Setup Micromamba
27+
uses: mamba-org/setup-micromamba@v1
28+
with:
29+
environment-file: environment.yml
30+
init-shell: none
31+
cache-downloads: false
32+
33+
- name: Check Python Versions
34+
shell: micromamba-shell {0}
35+
run: |
36+
python --version
37+
python3 --version
38+
which python
39+
which python3
40+
which pip
41+
which pip3
42+
which poetry
43+
44+
- name: Install Dependencies
45+
shell: micromamba-shell {0}
46+
run: poetry install --no-interaction --without dev --with test
47+
48+
- name: Install lap (Hack)
49+
shell: micromamba-shell {0}
50+
run: |
51+
pip install --upgrade pip
52+
pip install lap
53+
54+
- name: Check Installed Packages
55+
shell: micromamba-shell {0}
56+
run: pip list
57+
58+
- name: Extend MobilityDB with User-Defined functions
59+
shell: micromamba-shell {0}
60+
run: |
61+
pushd pg_extender
62+
python ../scripts/generate_pg_extender.py
63+
cat install.sql
64+
psql -h localhost -p 25440 -d mobilitydb -U docker -c "SET client_min_messages TO WARNING;" -c "\i install.sql;"
65+
popd
66+
env:
67+
PGPASSWORD: docker
68+
69+
- name: Ingest data
70+
shell: micromamba-shell {0}
71+
run: |
72+
python ./scripts/ingest_road.py
73+
env:
74+
AP_PORT: 25440
75+
76+
- name: Generate Image data
77+
shell: micromamba-shell {0}
78+
run: python scripts/fake-images.py
79+
80+
- name: Unit Test
81+
shell: micromamba-shell {0}
82+
run: pytest tests-pipeline
83+
env:
84+
AP_PORT: 25440

0 commit comments

Comments
 (0)