ZwX1616
b7bc342cc8
need no divided by 2
5 years ago
Adeeb Shihadeh
685340d578
Sound stability test ( #2089 )
...
* play sound
* clean this up
* no cereal
* fix module issue
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Willem Melching
3517d45802
make sure snpe can find libopencl
5 years ago
robbederks
37d6472bfa
Tici camerad ( #2048 )
...
* fix camera config
* typos
* oops
* more typo
* lambless
* forget to send
* visualize hist
* more typo
* 0xC000
* simple
* data loss prevention, clean up later
* loggerd
* back up code
* backup
* fixed memory leak
* fix vsync
* upload ecam
* WB
* 3stream
* fix OMX crash on loggerd rotation
* rewritten debayer kernel
* update viewer
* improved AE
* no artifact lines/grids
* standard trigger
* cleanups
* CCM
* cleanups
* slight tweak
* upd push sock
* build all these
* update tele fl
* update cereal
* upd viewer
* DualCameraState -> MultiCameraState
* cameras_open
* disable frame zmq push by default
* more cleanup
* no apks
* fix submodule error
* wat
* clean up trash
* remove junk
* only build on qcom2
* no need to check these
* update cereal
* some more minor cleanup
* bump panda
* add todo
* minor typo
* Revert "minor typo"
This reverts commit 9233a1df7c
.
* not care
* use consistent hdr
* some cleanup
* Update selfdrive/camerad/main.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* more cleanups
* remove irrelevant stuff
* this too
* cleanup
* rerun ci
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Willem Melching
a7be2b090d
larch64 dmonitoringmodeld fixes
5 years ago
Willem Melching
cd6ec8211c
larch64 modeld fixes ( #2086 )
5 years ago
Dean Lee
727055e0a0
remove device_id&context from ModelFrame ( #2064 )
5 years ago
Dean Lee
de7b901dc1
move matmul3 into live_thread ( #2069 )
5 years ago
Dean Lee
f8ab6bd009
ui: refactor model related functions ( #2026 )
...
* remove read_model
* remove structs for c-capnp
* remove duplicate #define from modeld
* add function fill_path_points
* fix Indentation
* use MODEL_PATH_DISTANCE instead of 192
* fix type
use validLen
* rename left_path_points&right_path_points to xxx_lane_points
5 years ago
Dean Lee
d158837617
add function cl_get_device_id ( #1948 )
...
* add func cl_get_device_id
cleanup
* add fix from review
5 years ago
Dean Lee
36801a70eb
init and destroy transform_lock ( #2003 )
5 years ago
Dean Lee
cccb63229d
fix bug that visionstream_destroy may be called twice ( #1999 )
5 years ago
Dean Lee
ef435ef2ac
Make sure memory is released by using unique_ptr ( #1958 )
5 years ago
Dean Lee
f80acad519
modeld: read frame_id if sm.update(0)>0 ( #1947 )
...
* read frameid if sm.update(0)>0
* move postion
same line
5 years ago
ZwX1616
2cfa0edb4c
EfficientNet driver monitoring ( #1907 )
...
* e96f9be6
* bump cereal
* filter sunglasses
* fix unittest
* update refs
* udpate refs
* update refs
* add tolerance for dmonitoringd
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Adeeb Shihadeh
5db81f60ca
Fix most remaining LGTM alerts ( #1893 )
...
* fixups from LGTM
* short globals
* fix spinner and textwindow
* total ordering
* no spinner/text window when import from manager
* not android
5 years ago
Adeeb Shihadeh
35a5b057c1
minor cleanups from LGTM
5 years ago
ZwX1616
c2be31c10b
Revert "EfficientNet driver monitoring ( #1866 )"
...
This reverts commit 2d0e994674
.
Need to fix test
5 years ago
ZwX1616
2d0e994674
EfficientNet driver monitoring ( #1866 )
...
* e96f9be6
* bump cereal
* filter sunglasses
* fix unittest
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Adeeb Shihadeh
58c3b5ba84
Revert modeld vipc conflate behavior and alert on dropped frame percent ( #1877 )
...
* Revert "Fix modeld dropping frames if processing takes over 50 ms"
This reverts commit a8e7a187ca
.
* track frame drop
* fix unused
* alert on frame drop perc
* reduce thresholds
* posenet is invalid on non-consecutive frames
* Refactor filter time constant
* Use vipc_dropped_frames for posenet valid check
* Actually set frame drop percentage
* Add explicit cast just to be sure
* Prevent frames dropped to go up to quickly on startup
* bump cereal
* reduce soft disable threshold to 1%
Co-authored-by: Willem Melching <willem.melching@gmail.com>
5 years ago
Adeeb Shihadeh
704bc1b883
small scons cleanup ( #1858 )
5 years ago
Adeeb Shihadeh
c8f3ff8913
only check frame age for posenet too
5 years ago
Adeeb Shihadeh
587bdf5937
only check frame age for model validity
5 years ago
Adeeb Shihadeh
03e824a4b5
Alert when modeld is lagging by more than a frame ( #1823 )
...
* alert when modeld is lagging by more than 1 frame
* log frameAge in modelData
* set posenet valid
* compute frame_age once
5 years ago
Adeeb Shihadeh
eb1aa3d831
Wunused ( #1841 )
...
* enable Wunused, first pass
* unused stuff in snpe model
* these are used on phone
* handle sigint and sigterm in modeld
* fix phone build
* camera qcom
* QCOM build works
* delete unused camerad vars
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Willem Melching
5e10efead1
Fix unsigned overflow in modeld frame age computation
5 years ago
Willem Melching
88f9266378
Make model packets invalid when frames are too old ( #1759 )
...
* make model packets invalid when frames are too old
* add frame numbers to cloudlog
5 years ago
Willem Melching
a8e7a187ca
Fix modeld dropping frames if processing takes over 50 ms
5 years ago
George Hotz
01a486308d
c++ify thneed to remove memory leaks ( #1737 )
...
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Dean Lee
c8082190a0
release resources in modeld ( #1700 )
5 years ago
Jason Young
80101b350b
modeld process time logging to DEBUG ( #1720 )
...
Co-authored-by: Jason Young <jason@comma.ai>
5 years ago
Willem Melching
4ca8283d73
Modeld: loop over platforms to find CPU/GPU ( #1710 )
...
* Modeld: loop over platforms to find gpu
* Remove prints
* PC needs CPU
* Keep default for qcom
* Update error message
5 years ago
George Hotz
344a9a3699
Fixups for Mac, and a bunch for PC ( #1654 )
...
* fix mac nui
* fix cereal
* builds on mac without warnings
* ui swap shouldn't be instant on pc
* camerad builds on mac
* modeld, and now everything, builds on mac
* ui draws pictures on mac now
* fix camerad shutdown
* support ui looping on pc
* python3 on that
* SCNu64 should be cross platform
* bump cereal and new apk
* clean up
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Jason Young
ec5fc0e92b
Update realtime priority for modeld/dmonitoringd ( #1675 )
5 years ago
Dean Lee
90d97de74d
add function read_db_bytes ( #1662 )
5 years ago
George Hotz
7770041f92
Getting PC openpilot working again ( #1650 )
...
* fixup keras_runner to work and be nicer
* truncate the lane lines based on the valid len
5 years ago
Dean Lee
c7ff6dd194
pass DMonitoringResult as referer ( #1639 )
5 years ago
Adeeb
367155168a
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai>
5 years ago
George Hotz
4e7fe3a9ec
save valid_len
5 years ago
Adeeb
ab83e48ec4
Add pre-commit hooks ( #1629 )
5 years ago
Willem Melching
843a64c72f
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
5 years ago
Dean Lee
cdb48cc180
dmonitoring : use memory cache to avoid malloc/free on every frame ( #1599 )
...
* use memory cache
* use template function to return buffer
* inline function
* const size_t
* use std::vector instead of kj::array
5 years ago
Adeeb Shihadeh
f3dcf861c7
enable flake8 E303: too many blank lines
5 years ago
Adeeb Shihadeh
27754a277c
enable E261 in flake8: two spaces before inline comment
5 years ago
Adeeb Shihadeh
efd5dffb1e
enable flake8 E231: missing whitespace after comma
5 years ago
Dean Lee
af36aa28ab
driving.cc: Pass ModelDataRaw by reference ( #1600 )
...
* pass ModelDataRaw by reference
* pass NVGpaint by refer
5 years ago
Willem Melching
ba2ac1207a
Running pre-commit in CI ( #1590 )
...
* Running pre-commit in CI
* fix dockerfile syntax
* dont run on submodule repo folders
* Fix some import errors in ci
* more stuff
* That should be the last one
5 years ago
Willem Melching
50f3f1d335
-Werror ( #1567 )
...
* werror
* -Wno-inconsistent-missing-override
* Silence ffmpeg deprecation warnings
* add some more pragmas to ignore warnings
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Dean Lee
d5858955ee
reduce the scope of mutex ( #1561 )
5 years ago
George Hotz
b8571710e0
remove the clCreateProgramWithSource interceptor ( #1559 )
...
* remove the clCreateProgramWithSource interceptor
* that's old code, thneed is better
* label them thneed_, we shouldn't need to touch CL for anything not SNPE related
5 years ago