Commit Graph

109 Commits

Author SHA1 Message Date
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
2020-06-15 15:58:12 -07:00
Greg Hogan
32c4367ffb ffmpeg hwaccel is better 2020-06-12 16:11:40 -07:00
Willem Melching
6810333075 Sim hw type is grey panda now 2020-06-12 10:57:30 -07:00
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>
2020-06-11 18:21:59 -07:00
Adeeb Shihadeh
c6bd187450 clean up webcam readme 2020-06-06 21:21:25 -07:00
Willem Melching
72cc0fc801 use pipenv for dev dependencies 2020-06-05 14:03:54 -07:00
Adeeb Shihadeh
3463f1165e quick LGTM fixes 2020-06-05 11:29:09 -07:00
Willem Melching
63c8e8439b Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-06-04 18:57:25 -07:00
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>
2020-06-03 16:13:34 -07:00
Adeeb
ab83e48ec4 Add pre-commit hooks (#1629) 2020-06-03 12:54:49 -07:00
George Hotz
d1d2984f36 fetch image from route script 2020-06-03 11:32:51 -07:00
Willem Melching
843a64c72f Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
VirtuallyChris
68040408da Add Putty key 2020-06-01 18:35:28 -07:00
Adeeb Shihadeh
6466ec982a enable flake8 E502: backslash is redundant between brackets 2020-05-31 17:41:18 -07:00
Adeeb Shihadeh
ebed2d1dcc enable flake8 E251: unexpected spaces around keyword / parameter equals 2020-05-31 17:34:47 -07:00
Adeeb Shihadeh
f3dcf861c7 enable flake8 E303: too many blank lines 2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
27754a277c enable E261 in flake8: two spaces before inline comment 2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
efd5dffb1e enable flake8 E231: missing whitespace after comma 2020-05-31 12:49:11 -07:00
Adeeb
6051061ff8 Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
2020-05-31 00:48:47 -07:00
Adeeb
d9bf9f0a40 Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
2020-05-30 20:14:58 -07:00
Greg Hogan
d112a58366 FrameReader env vars FFMPEG_THREADS and FFMPEG_CUDA 2020-05-28 17:33:34 -07:00
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
2020-05-28 15:40:48 -07:00
Willem Melching
3d08dcc3b2 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
2020-05-28 15:05:04 -07:00
Greg Hogan
2d0686faa1 framereader single threaded env var 2020-05-28 13:39:28 -07:00
Willem Melching
639cf2288f framereader only has to support h265 and raw (#1588) 2020-05-28 12:45:38 -07:00
Willem Melching
29aaa44740 flake8 in pre-commit(#1583) 2020-05-27 20:33:05 -07:00
Willem Melching
bd06434243 pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
2020-05-27 20:00:14 -07:00
xx979xx
6596dd62ae add pygmae dependencies (#1573)
https://www.pygame.org/wiki/CompileUbuntu#Python%203.x%20into%20virtual%20environment
2020-05-27 12:24:04 -07:00
xx979xx
2d89f3c6d9 update OpenCL Driver 16.1 > 18.1 (#1524) 2020-05-21 12:03:30 -07:00
Ewout ter Hoeven
3f8afe593f Pip: Move from tensorflow-gpu to tensorflow package (#1530)
* Pip: Move from tensorflow-gpu to tensorflow package

Since tensorflow 2.1 the regular tensorflow package contains GPU support and replaces the tensorflow-gpu package, which will be depreceated at some point.

* Readme: Update Tensorflow version

* Update Pipfile.lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-05-20 13:17:54 -07:00
Adeeb Shihadeh
a415fe1ebe capnp is no longer in external 2020-05-17 13:32:26 -07:00
Noel Schenk
ce8b629fb0 tensorflow-gpu==2.1 update (#1525)
not available on current used python version
2020-05-16 21:59:28 -07:00
Willem Melching
43f7fe178d not needed 2020-05-14 17:59:26 -07:00
Willem Melching
43873c9600 use system capnp 2020-05-14 17:58:43 -07:00
Adeeb Shihadeh
44560b5bb7 add tenacity to tools requirements 2020-05-14 15:19:52 -07:00
Adeeb Shihadeh
f15f24b529 add pycurl to tools requirements 2020-05-14 12:43:41 -07:00
Willem Melching
72db8d890d Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
2020-05-12 18:50:07 -07:00
Willem Melching
cd79cee41a ffprobe use -f instead of -format 2020-05-11 15:32:40 -07:00
Adeeb Shihadeh
10ae22a192 delete unused lines 2020-05-10 11:25:42 -07:00
Adeeb Shihadeh
a25d535793 Revert "function doesn't have that arg"
This reverts commit d712d9cf3b.
2020-05-09 17:26:24 -07:00
Adeeb Shihadeh
d712d9cf3b function doesn't have that arg 2020-05-09 17:21:51 -07:00
Adeeb
008700a6b3 LGTM fixes (#1480) 2020-05-09 16:40:43 -07:00
Adeeb Shihadeh
27303c2d5d don't need c capnp any more 2020-05-07 21:07:18 -07:00
Greg Hogan
0b5758f1be framereader index data as param 2020-05-07 18:23:19 -07:00
George Hotz
e568d3cadc More LGTM fixups (#1457)
* exclude lib dirs, fix 3 cpp errors

* fix more alerts, exclude mkvparse

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 20:00:41 -07:00
George Hotz
1295cfe06c Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
2020-05-02 12:07:34 -07:00
Willem Melching
845abed5db Build log_index using scons 2020-04-30 16:26:11 -07:00
Willem Melching
e2493c2221 Handle loop and multiple publishers 2020-04-30 14:33:58 -07:00
Willem Melching
bb02a565b5 remove pyqt5 2020-04-29 13:11:12 -07:00
Willem Melching
c4f62b4b8e No looping 2020-04-28 15:30:11 -07:00