Commit Graph

412 Commits

Author SHA1 Message Date
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
2023-08-11 16:13:51 -07:00
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
2023-08-11 15:33:49 -07:00
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
2023-08-09 19:56:45 -07:00
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
2023-08-09 13:26:54 -07:00
Justin Newberry
ff96892511 Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b
2023-08-08 14:24:04 -07:00
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
2023-08-08 13:41:30 -07:00
eFini
0a9ec3e2aa unused variables removal (#29247)
old-commit-hash: e883789c0e
2023-08-06 21:41:13 -07:00
mitchellgoffpc
7616368e5b Added modeld gitignore
old-commit-hash: 66dfe8fd5e
2023-08-04 14:14:45 -07:00
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
2023-08-01 19:23:18 -07:00
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
2023-08-01 16:18:46 -07:00
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
2023-07-31 17:49:50 -07:00
Nima Khodaveisi
8fdb381e42 dmmonitoringmodeld: remove unused libyuv import (#29180)
old-commit-hash: 24c7b044de
2023-07-31 13:23:13 -07:00
YassineYousfi
af69774431 models/README: DM input is only luma (#29188)
dm input = only luma
old-commit-hash: 14e524d52b
2023-07-31 12:57:22 -07:00
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
2023-07-23 09:28:22 -07:00
Shane Smiskol
c258e9d64a experimental mode: gate nav (#29007)
* first draft copy, needs updates

* gate behind exp mode

* can be one line

* this is no longer true

* toggle isn't just e2e long now, rename

* don't enable/disable

* kinda works!

* remove old giant qstring

* comment clean up

* similar breakpoint

* more clean up

* fixup onroad

* preserve planner behavior, and we don't need to look at confirmed param if we're onroad

* update translations

* vanish translations

* use scene for op long

* lowercase!

* updated copy

* need to check longitudinal here now too

* clean up!

* here is better

* used

* no nav emoji

* don't check param if not valid

* revert this

revert this

* ed

* revert experimental mode longitudinal checks (still need to revert toggle change)

* revert

* logic works

* revert test

* fix

* update translation

* fix (reset and update)
old-commit-hash: 6bc28fc769
2023-07-17 21:18:18 -07:00
Kacper Rączy
fe2fc9dd11 onnx_runner: force determinism (#29000)
old-commit-hash: 8ce72760e7
2023-07-18 05:52:07 +02:00
Shane Smiskol
f9c6c9e8c3 Revert "experimental mode: gate navigate on openpilot (#28883)" (#29005)
This reverts commit 929880496515e3f995634e561145802bf15a60ea.
old-commit-hash: b5b431c12d
2023-07-17 19:56:38 -07:00
Dean Lee
46d64e90e6 dmonitoring: use sizeof(float) instead of hardcorded size (#28963)
old-commit-hash: 8dcd92253b
2023-07-15 10:30:50 -07:00
Cameron Clough
aa0c37ed21 modeld: comment out unused variables (#28944)
old-commit-hash: ce0717670b
2023-07-14 17:45:00 +01:00
Shane Smiskol
296de39f48 experimental mode: gate navigate on openpilot (#28883)
* first draft copy, needs updates

* gate behind exp mode

* can be one line

* this is no longer true

* toggle isn't just e2e long now, rename

* don't enable/disable

* kinda works!

* remove old giant qstring

* comment clean up

* similar breakpoint

* more clean up

* fixup onroad

* preserve planner behavior, and we don't need to look at confirmed param if we're onroad

* update translations

* vanish translations

* use scene for op long

* lowercase!

* updated copy

* need to check longitudinal here now too

* clean up!

* here is better

* used

* no nav emoji

* don't check param if not valid

* revert this

revert this

* ed
old-commit-hash: f973d605b2
2023-07-14 05:26:59 -07:00
Adeeb Shihadeh
e83ec32c7b dmonitoringmodeld: add more logging around the init (#28920)
old-commit-hash: 8d13ddb943
2023-07-13 11:58:51 -07:00
Mitchell Goff
a0d705d113 nav model: fix flicker in nav enabled state (#28815)
* Fix flicker in nav enabled state

* Move all relevant information for validity checks into navModel packet

* Ignore locationMonoTime in replay tests

* Check route valid in navmodeld

* sm update

* check that

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e346839c68
2023-07-09 15:10:02 -07:00
Mitchell Goff
95051090a1 Refactor model runners (#28598)
* Started work on model runner refactor

* Fixed some compile errors

* everything compiles

* Fixed bug in SNPEModel

* updateInput -> setInputBuffer

* I understand nothing

* whoops lol

* use std::string instead of char*

* Move common logic into RunModel

* formatting fix
old-commit-hash: c9f00678af
2023-07-06 22:26:11 -07:00
Dean Lee
235235b2d9 modeldata.h: convert constants to uppercase (#28769)
old-commit-hash: 32c5e6aafb
2023-07-01 08:26:21 +01:00
Mitchell Goff
d663b5843e Moonrise Model (#28761)
* New model: 889463fc-5e5d-497d-9111-c8567a13cabf

* Updated model replay ref
old-commit-hash: 531c13f2ac
2023-06-30 18:52:20 -07:00
ZwX1616
6e547a2748 Modeld: send confidence class (#28625)
* 0.7

* magic

* faster magic

* more simple

* up

* empty

* more mid bits

* naive

* flatten

* dz

* that can stay

* this is fine

* what the

* what the

* giRevert "what the"

This reverts commit 1619ba68e6098dc581fe9b82e7ecb74562b619cc.

* Revert "what the"

This reverts commit 0037dd368290497a6d0009ca34adb2184b584d2e.

* 1x fine

* that was fine

* combined

* independent cum

* 0 is fine

* use metrics

* up cereal

* process and publish from modeld

* cleanup

* use s.output

* bg

* a greener approach

* dns

* serial

* update ref commit

* rebase

* ref

* cereal master

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ce2dffe566
2023-06-23 16:49:14 -07:00
Mitchell Goff
4ad967f963 Publish navEnabled from modeld (#28647)
* Publish navEnabled from modeld

* Bump cereal
old-commit-hash: 4c2c73b152
2023-06-22 19:39:51 -07:00
Kacper Rączy
1fa42d0b97 process_replay: modeld and dmonitoringmodeld support (#28463)
* vipc support. modeld and dmonitoringmodeld configs

* Update cereal

* Add vision meta

* Use vision meta in process replay

* Exclude modeld and dmonitoringmodeld from test_processes

* Refactor other pieces of code to use vision meta

* remove unnecessary imports

* Add MAX_FRAMES_PER_SEGMENT

* cameraState migration

* Move camera state migration to migration module

* model_replay refactor

* Fix lint issues

* Reduce number of vipc buffers to 2

* Update spinner message

* Update model replay ref

* Support the new log order

* Replace CameraFrameSizes with dict. Add encode_index field

* Migrate camera states based on encode indices

* Refactor process replay

* Refactor model replay

* Remove unnecessary print

* Update model replay ref

* Make camera state migration optional

* Remove unused import

* Add ignore_alive_pubs field

* Add assertion for carParams inside fingerprinting callback

* Remove WideCameraOnly param setup

* Refactor ModeldCameraSyncRcvCallback

* Update model replay ref commit

* Fix camera state migration

* Only migrate camera states when process has vision pubs

* Refactor model replay again

* Fix linter issues

* One more linter fix

* Update model replay ref commit
old-commit-hash: 2c617e0c7a
2023-06-22 17:36:25 -07:00
Mitchell Goff
31834eac4c Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
old-commit-hash: ae5bfcf248
2023-06-21 20:02:44 -07:00
Mitchell Goff
77b5e197aa Enable nav features in modeld (#28448)
* Enable nav features in modeld

* Enable mapsd/navmodeld

* Updated model_replay_ref_commit and added mapsd/navmodeld to test_onroad

* fixed process name

* always publish from mapsd
old-commit-hash: aadd9ae269
2023-06-16 21:27:35 -07:00
Mitchell Goff
429a638740 New map model: 917a2539-5e7a-4374-878a-9b356f0f1922/500 (#28579)
old-commit-hash: a9cb255017
2023-06-16 19:31:57 -07:00
YassineYousfi
990624c07e Nicolas Cage Model (#28547)
01697194-d32d-4c3a-a803-d8f61cdf24e9/449 2ff8e6a1-7efd-4984-9f29-974164a3747b/700
old-commit-hash: 4fcd82076a
2023-06-16 13:36:56 -07:00
Kacper Rączy
8aa845a1c8 modeld: use any available stream as main, if there's only one (#28514)
* Use whatever stream is available as main, if there's only one

* Move logw somewhere else

* Add wideRoadCameraState to ignore_alive if its not available
old-commit-hash: 4eb3d54149
2023-06-12 20:13:56 -07:00
Dean Lee
eddc84d104 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
old-commit-hash: 4ae0378f63
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh
846cd63f53 thneed: cleanup duplicate GPU config (#28487)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b22cadc04d
2023-06-11 13:26:41 -07:00
Adeeb Shihadeh
d5564bca27 modeld: adjust CL priority (#28413)
old-commit-hash: d5101e11ad
2023-06-05 17:17:38 -07:00
YassineYousfi
4de14c1130 hot coffee model (#28296)
* 1061b1c7-b944-43e3-a940-b56b64d66f54/700

* bump cereal

* bump cereal

* make mypy happy

* write TODO

* read height from written params

* fix certain_if_calib logic and unit tests

* factor moving_avg_with_linear_decay

* remove whitespace

* update model ref commit

* default value for CI

* update process replay ref commit

* update process replay ref commit

* update process replay ref commit

* bump cereal
old-commit-hash: 7925232a34
2023-06-02 20:55:13 -07:00
YassineYousfi
52e1cf2e64 fix input order in onnxmodel (#28274)
old-commit-hash: d0a8b3780c
2023-05-23 16:11:51 -07:00
Mitchell Goff
22c5053bbc Nicki Minaj Model (#28218)
* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit
old-commit-hash: 328b5d9d47
2023-05-22 15:11:04 -07:00
YassineYousfi
3c001d5c89 update dm model README (#28238)
add calib dm input in readme
old-commit-hash: bda0d6ac77
2023-05-19 15:20:43 -07:00
YassineYousfi
53b93550c7 update DM model README (#28211)
* update DM model readme

* rename + permalink + correct types and ranges
old-commit-hash: 2d4558d5cf
2023-05-16 13:40:49 -07:00
YassineYousfi
fa6e10b739 new model: trained with augmented turn desire pulses (#28063)
* df733db3-fad2-4485-abe9-59a6a47f2233/449 85f20e13-dd4d-49a8-ba33-98e6afc161d9/700

* update ref commit
old-commit-hash: f80c1087fc
2023-05-01 16:03:16 -07:00
YassineYousfi
cde221ba7c new model: trained on new dataset (#27637)
* df733db3-fad2-4485-abe9-59a6a47f2233/449 946c0f55-247d-4790-a407-c07e4364b340/700

* fix reducel2 df733db3-fad2-4485-abe9-59a6a47f2233/449 946c0f55-247d-4790-a407-c07e4364b340/700

* update ref commit
old-commit-hash: 26541d9e7a
2023-03-22 20:19:46 -07:00
YassineYousfi
0716a1250b update modeld/models readme (#27564)
* update readme with new model design

* typo

* space
old-commit-hash: e146bb1a96
2023-03-11 16:26:39 -08:00
George Hotz
2fe836f158 tinygrad: bump to 0.5 (#27505)
* bump tinygrad to 0.5

* update release files

* ref commit + bump tinygrad

* save 220 mW

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3892c60980
2023-03-06 15:50:28 -08:00
Harald Schäfer
0ac73f2a81 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
old-commit-hash: eb8bdc0026
2023-02-17 19:58:30 -08:00
YassineYousfi
542e915982 new model: improved height estimation (#27234)
* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 c3d7d18a-6207-42e7-84d9-601ecb3c6f0e/700

* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 db92e7f3-3f4b-4f0f-95ff-76cb6ed6894a/700

* update ref commit
old-commit-hash: 1e49c54ffb
2023-02-08 22:21:31 -08:00
YassineYousfi
452031fcc7 new model: fixed weight decay logic (#27068)
* 07a3a2b2-6dbe-43c3-9bb9-a8023932e054/449 cdfa9e3c-2807-49fc-bdc7-a985f8ff1644/700

* update refs
old-commit-hash: 7316cd03fb
2023-01-26 19:09:12 -08:00
George Hotz
94fc9ef358 tinygrad: update to new version (#27067)
* tinygrad: bump and retain OPENCL behavior

* add graph.py to release, bump tiny

* update files_common and read from it in scons

* bump with typo fix

* switch tinygrad backend to GPU

* update ref commit

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 64ed44e3b5
2023-01-24 14:06:56 -08:00
Adeeb Shihadeh
b3e47c691b move all third party stuff into third_party/ (#26853)
* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd8e03d53e
2022-12-31 21:00:50 -08:00