Harald Schäfer
5bb0112fdd
Test modeld: 3s enough for modeld startup ( #29936 )
...
* Test modeld: 3s enough for modeld startup
* Always fails when you send frames before modeld is ready
* Wait for modeld to read
old-commit-hash: ef50b4fdac
2 years ago
Mitchell Goff
3e1903a6cb
Converted onnx runner to python ( #29856 )
...
old-commit-hash: 9cc00c2101
2 years ago
Mitchell Goff
65fc9f14b3
Update model input names to match onnx inputs ( #29855 )
...
Updated model input names to match onnx inputs
old-commit-hash: 2d69f3d63e
2 years ago
Mitchell Goff
5732002296
Rewrite dmonitoringmodeld in python ( #29740 )
...
* Added dmonitoringmodeld.py
* Removed dmonitoringmodeld.cc
* Use ModelRunner helpers from runners/__init__.py
* Fixed DriverStateResult field ordering
* Some bug fixes
* Set calib input
* Look ma, no loop!
* Bump dmonitoringmodeld cpu usage in test_onroad
* Fixed memory leak caused by np.ctypes.data_as
* Formatting fixes
* chmod +x
* remove USE_ONNX_MODEL
* Realtime priority 1, formatting fixes
old-commit-hash: 503fa121ee
2 years ago
Mitchell Goff
f9daa1d1cc
Rewrite navmodeld in python ( #29579 )
...
* Added navmodeld.py
* Deleted navmodeld.cc
* Write SConscript config flags to config.py
* Remove deleted files from release/files_common
* Some more bug fixes
* Added config.py to gitignore
* Get rid of config.py
* Use set_realtime_priority
* A tiny bit more cleanup
* set realtime priority 1
* Use ModelRunner helper class from runners/__init__.py
* Formatting fixes
* mama mia that's a SPICY memory leak
old-commit-hash: 0c0af682a1
2 years ago
mitchellgoffpc
459e4fdb50
Added cython bindings for commonmodel sigmoid
...
old-commit-hash: 05993f50df
2 years ago
Mitchell Goff
cd7d73eaf8
Added ModelRunner helpers in modeld/runners/__init__.py ( #29737 )
...
* Added ModelRunner helper class
* import Runtime in __init__.py
old-commit-hash: d5a55136a1
2 years ago
mitchellgoffpc
aca5580900
Move Runtime into runmodel_pyx
...
old-commit-hash: f91e955a86
2 years ago
mitchellgoffpc
e9c82290c0
Remove unnecessary hardware check in modeld
...
old-commit-hash: 857f747467
2 years ago
mitchellgoffpc
51066175f5
Set ADSP_LIBRARY_PATH in snpemodel_pyx
...
old-commit-hash: 18526c58b6
2 years ago
mitchellgoffpc
83745ad42f
Set RPATH for snpemodel
...
old-commit-hash: aebff37593
2 years ago
Mitchell Goff
52901d2a20
Cleaned up modeld SConscript ( #29646 )
...
old-commit-hash: 88a36f4464
2 years ago
Mitchell Goff
fa770f1ccc
Combine update_calibration/get_warp_matrix ( #29719 )
...
old-commit-hash: 151ac4bf76
2 years ago
Mitchell Goff
54988e457f
Move update_calibration to modeld.py ( #29688 )
...
* Move update_calibration to modeld.py
* Updated ref commit
old-commit-hash: 1eb60516cb
2 years ago
mitchellgoffpc
16a3f0f67f
-DUSE_THNEED is dead
...
old-commit-hash: 12d1020239
2 years ago
Mitchell Goff
c4ae1fae5a
Added USE_THNEED environment variable and removed build flag ( #29645 )
...
old-commit-hash: d998fd88a8
2 years ago
mitchellgoffpc
fdaee85b1e
Remove no-thneed build flag
...
old-commit-hash: 807410e0ac
2 years ago
mitchellgoffpc
e9e98abe89
Remove USE_THNEED check from run.h
...
old-commit-hash: e0287fa93e
2 years ago
Kacper Rączy
d254137f4c
modeld: fix bash scripts ( #29643 )
...
Fix shebang. Fix LD_PRELOAD
old-commit-hash: a4a0429fca
2 years ago
mitchellgoffpc
68e2c74cd3
Remove thneed logic from snpemodel
...
old-commit-hash: ef8e0fef55
2 years ago
Mitchell Goff
a3fbbb26ac
Rewrite modeld in python ( #29230 )
...
* Added modeld.py (WIP)
* No more VisionIpcBufExtra
* Started work on cython bindings for runmodel
* Got ONNXModel cython bindings mostly working, added ModelFrame bindings
* Got modeld main loop running without model eval
* Move everything into ModelState
* Doesn't crash!
* Moved ModelState into modeld.py
* Added driving_pyx
* Added cython bindings for message generation
* Moved CLContext definition to visionipc.pxd
* *facepalm*
* Move cl_pyx into commonmodel_pyx
* Split out ONNXModel into a subclass of RunModel
* Added snpemodel/thneedmodel bindings
* Removed modeld.cc
* Fixed scons for macOS
* Fixed sconscript
* Added flag for thneedmodel
* paths are now relative to openpilot root dir
* Set cl kernel paths in SConscript
* Set LD_PRELOAD=libthneed.so to fix ioctl interception
* Run from root dir
* A few more fixes
* A few more minor fixes
* Use C update_calibration for now to exactly match refs
* Add nav_instructions input
* Link driving_pyx.pyx with transformations
* Checked python FirstOrderFilter against C++ FirstOrderFilter
* Set process name to fix test_onroad
* Revert changes to onnxmodel.cc
* Fixed bad onnx_runner.py path in onnxmodel.cc
* Import all constants from driving.h
* logging -> cloudlog
* pylint import-error suppressions no longer needed?
* Loop in SConscript
* Added parens
* Bump modeld cpu usage in test_onroad
* Get rid of use_nav
* use config_realtime_process
* error message from ioctl sniffer was messing up pyenv
* cast distance_idx to int
* Removed cloudlog.infos in model.run
* Fixed rebase conflicts
* Clean up driving.pxd/pyx
* Fixed linter error
old-commit-hash: 72a3c987c0
2 years ago
Mitchell Goff
5033da5e27
Added cython bindings for model runners and commonmodel ( #29607 )
...
* Added cython bindings for model runners and commonmodel
* Removed cython language_level=3
* loop to set CXXFLAGS for both envs
old-commit-hash: e2e39d100b
2 years ago
Justin Newberry
c4f322ce2d
Linter: remove pylint ( #29611 )
...
remove pylint
old-commit-hash: 1ee6ed4b16
2 years ago
mitchellgoffpc
01e73c76f8
Moved thneed src to top of modeld sconscript
...
old-commit-hash: 7dae580441
2 years ago
mitchellgoffpc
c4bb5bbf04
Some cleanup in modeld sconscript
...
old-commit-hash: fc8c97e7a9
2 years ago
mitchellgoffpc
0126d840f3
Disable error message in thneed ioctl interceptor to fix pyenv issues
...
old-commit-hash: a184d40b7a
2 years ago
Dean Lee
de809632bf
cpplint: add filter `whitespace/comma` ( #29595 )
...
old-commit-hash: 7bfd3dac81
2 years ago
Dean Lee
228d30d5a9
cpplint: add filter `whitespace/tab` ( #29588 )
...
old-commit-hash: 9c7bf50703
2 years ago
Dean Lee
0984736972
cpplint: add filter `build/include_subdir` ( #29585 )
...
old-commit-hash: 21da5a216f
2 years ago
Dean Lee
5f4b422305
cpplint: add filter `whitespace/semicolon` ( #29568 )
...
old-commit-hash: f203648de0
2 years ago
Dean Lee
db211ce617
cpplint: add filter `whitespace/parens` ( #29565 )
...
old-commit-hash: 5480d32bb5
2 years ago
Dean Lee
97e9d55588
cpplint: `build/include_what_you_use` ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2 years ago
mitchellgoffpc
8a1e4d8575
Set paths for cl kernels and onnx_runner.py in modeld SConscript
...
old-commit-hash: 7699444816
2 years ago
mitchellgoffpc
b1a10e45d1
Move USE_RUNTIME flags into runmodel.h
...
old-commit-hash: 24090d2121
2 years ago
mitchellgoffpc
b69de80962
exit if onnxmodel exec fails
...
old-commit-hash: 8c478708ee
2 years ago
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Justin Newberry
f33b4de80b
Ruff: b905 (strict zip) ( #29336 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
* b905
old-commit-hash: e4ead4f183
2 years ago
Justin Newberry
d487c0501f
Ruff: enable most of bugbear ( #29320 )
...
* added mutable default args
* most of the Bs
* add comment about lrucache
old-commit-hash: 62c1e65924
2 years ago
Mitchell Goff
e6e19f8d3e
Non-Inflatable Model 🎈 ( #29003 )
...
* Added all maneuvers to navInstruction message
* Added nav instruction logic to modeld
* New model: fcee01c1-96bb-414f-b00d-e4a994a00922/700
* Fixed bug in navd
* Added sharp/slight modifiers
* Updated refs
old-commit-hash: c04e5d12fc
2 years ago
Justin Newberry
3ee0786de3
CI: Pylint to ruff ( #29294 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
* set line length
* pylint exclusions to ruff
* same excludes as old linter
* fix tools QA
* remove unrequired check
* revert linting third_party
* ignore e402
old-commit-hash: 7fdd9fc37c
2 years ago
Justin Newberry
ff96892511
Revert "CI: pylint to ruff ( #29276 )" ( #29284 )
...
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b
2 years ago
Justin Newberry
99006365a3
CI: pylint to ruff ( #29276 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
old-commit-hash: cb31a53d8a
2 years ago
eFini
0a9ec3e2aa
unused variables removal ( #29247 )
...
old-commit-hash: e883789c0e
2 years ago
mitchellgoffpc
7616368e5b
Added modeld gitignore
...
old-commit-hash: 66dfe8fd5e
2 years ago
Mitchell Goff
181e9775f7
Clean up model_publish args to simplify cython bindings ( #29203 )
...
* Clean up model_publish args to simplify cython bindings
* pass by reference
* Move FCW and model confidence queues into PublishState
old-commit-hash: 663fc0d8fe
2 years ago
Kacper Rączy
edc31db6df
aarch64: ubuntu build support ( #29171 )
...
* Add support for aarch64 pc linux
* Add new libyuv path to release files
* Add libyuv's x86_64 lib dir
* Move left-over platform specific dirs from files_common
* Remove libyuv/lib directory (duplicate)
* Fix mpc Sconscripts
* Remove acados lib path from mpc sources
* Fix typo
* Add watch3 exec on aarch64
old-commit-hash: c640429406
2 years ago
Dean Lee
b80325aa04
swaglog: enable type-checked against format string ( #29096 )
...
* check&fix fmt
* bump rednose
* correct format string
* bump rednose
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 940954c13e
2 years ago
Nima Khodaveisi
8fdb381e42
dmmonitoringmodeld: remove unused libyuv import ( #29180 )
...
old-commit-hash: 24c7b044de
2 years ago
YassineYousfi
af69774431
models/README: DM input is only luma ( #29188 )
...
dm input = only luma
old-commit-hash: 14e524d52b
2 years ago
Shane Smiskol
0a6b589f23
dmonitoringmodeld: initialize model first ( #29080 )
...
* hacky fix
* even better
* ordering
* clean up
* fix model replay
* add comment
* catch sigint
old-commit-hash: 12ed894362
2 years ago