Commit Graph

116 Commits

Author SHA1 Message Date
Willem Melching
9c291968f6 Speedup URLFile (#1888)
* add parallel download support to URLFile

* make python 3.8 happy

* Fix chunk size

* Automatic number of threads

* No daemon threads in unlogger

* Cache length

* dont touch old filereader

* Remove debug info

* remove debug script

* Ignore type
old-commit-hash: c70700758d
2020-07-20 17:10:08 +02:00
Adeeb Shihadeh
370a68623e minor cleanups from LGTM
old-commit-hash: 35a5b057c1
2020-07-17 23:34:38 -07:00
Adeeb Shihadeh
44afc4ae3c Build release2 and dashcam in CI (#1834)
* start building release2 in CI

* build script

* bring over changes from test branch

* fix build release test

* remove references to test branches

* ucnomment push

* fix duplicate remove

* two commits for dashcam

* need the key
old-commit-hash: c715661656
2020-07-07 14:17:09 -07:00
VirtuallyChris
ebf0e7d062 Remove chffrplus mention from tools readme
old-commit-hash: de16043331
2020-07-07 13:25:54 -07:00
Adeeb Shihadeh
414a3400bd remove duplicate key
old-commit-hash: 3c48b5a3ed
2020-06-29 15:05:47 -07:00
robbederks
4b2775add9 Dos (#1795)
old-commit-hash: df86c476c7
2020-06-29 12:47:48 +02:00
Johannes Schmitz
b3f972b1b7 Clarify shortcut usage in Carla simulation mode (#1724)
The keys to control openpilot have to be pressed with focus on the
terminal running the Carla bridge.
Also improve table formatting.
old-commit-hash: 2a9b5b395c
2020-06-17 17:53:17 -07:00
Willem Melching
725c5e742f 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
old-commit-hash: 4ca8283d73
2020-06-15 15:58:12 -07:00
Greg Hogan
b518934573 ffmpeg hwaccel is better
old-commit-hash: 32c4367ffb
2020-06-12 16:11:40 -07:00
Willem Melching
94893781ed Sim hw type is grey panda now
old-commit-hash: 6810333075
2020-06-12 10:57:30 -07:00
George Hotz
5d069eb8c3 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>
old-commit-hash: 344a9a3699
2020-06-11 18:21:59 -07:00
Adeeb Shihadeh
d7d8f3091b clean up webcam readme
old-commit-hash: c6bd187450
2020-06-06 21:21:25 -07:00
Willem Melching
b831619ec6 use pipenv for dev dependencies
old-commit-hash: 72cc0fc801
2020-06-05 14:03:54 -07:00
Adeeb Shihadeh
f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e
2020-06-05 11:29:09 -07:00
Willem Melching
ce6dd8d4e9 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>
old-commit-hash: 63c8e8439b
2020-06-04 18:57:25 -07:00
Adeeb
9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a
2020-06-03 16:13:34 -07:00
Adeeb
d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4
2020-06-03 12:54:49 -07:00
George Hotz
710710364d fetch image from route script
old-commit-hash: d1d2984f36
2020-06-03 11:32:51 -07:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

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

* e225

* bump opendbc
old-commit-hash: 6051061ff8
2020-05-31 00:48:47 -07:00
Adeeb
5e857427ba 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
old-commit-hash: d9bf9f0a40
2020-05-30 20:14:58 -07:00
Greg Hogan
10becfa268 FrameReader env vars FFMPEG_THREADS and FFMPEG_CUDA
old-commit-hash: d112a58366
2020-05-28 17:33:34 -07:00
Willem Melching
2ac27def5a 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
old-commit-hash: ba2ac1207a
2020-05-28 15:40:48 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b2
2020-05-28 15:05:04 -07:00
Greg Hogan
5db5ecd0b9 framereader single threaded env var
old-commit-hash: 2d0686faa1
2020-05-28 13:39:28 -07:00
Willem Melching
57cc3cd69a framereader only has to support h265 and raw (#1588)
old-commit-hash: 639cf2288f
2020-05-28 12:45:38 -07:00
Willem Melching
12a306021d flake8 in pre-commit(#1583)
old-commit-hash: 29aaa44740
2020-05-27 20:33:05 -07:00
Willem Melching
c0866d9edb 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>
old-commit-hash: bd06434243
2020-05-27 20:00:14 -07:00
xx979xx
d7e94a1704 add pygmae dependencies (#1573)
https://www.pygame.org/wiki/CompileUbuntu#Python%203.x%20into%20virtual%20environment
old-commit-hash: 6596dd62ae
2020-05-27 12:24:04 -07:00
xx979xx
a3aeab5018 update OpenCL Driver 16.1 > 18.1 (#1524)
old-commit-hash: 2d89f3c6d9
2020-05-21 12:03:30 -07:00
Ewout ter Hoeven
d302078e30 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>
old-commit-hash: 3f8afe593f
2020-05-20 13:17:54 -07:00
Adeeb Shihadeh
afbfee85a3 capnp is no longer in external
old-commit-hash: a415fe1ebe
2020-05-17 13:32:26 -07:00
Noel Schenk
0f610ac909 tensorflow-gpu==2.1 update (#1525)
not available on current used python version
old-commit-hash: ce8b629fb0
2020-05-16 21:59:28 -07:00
Willem Melching
3339270bf3 not needed
old-commit-hash: 43f7fe178d
2020-05-14 17:59:26 -07:00
Willem Melching
9cc9be5bb3 use system capnp
old-commit-hash: 43873c9600
2020-05-14 17:58:43 -07:00
Adeeb Shihadeh
05a09435b0 add tenacity to tools requirements
old-commit-hash: 44560b5bb7
2020-05-14 15:19:52 -07:00
Adeeb Shihadeh
097bafdc54 add pycurl to tools requirements
old-commit-hash: f15f24b529
2020-05-14 12:43:41 -07:00
Willem Melching
8505259e41 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
old-commit-hash: 72db8d890d
2020-05-12 18:50:07 -07:00
Willem Melching
89241b3dba ffprobe use -f instead of -format
old-commit-hash: cd79cee41a
2020-05-11 15:32:40 -07:00
Adeeb Shihadeh
bd980f6048 delete unused lines
old-commit-hash: 10ae22a192
2020-05-10 11:25:42 -07:00
Adeeb Shihadeh
d6d8d48b3f Revert "function doesn't have that arg"
This reverts commit 9b8b482a0048290fcadc19f0bb4de442f8faa143.

old-commit-hash: a25d535793
2020-05-09 17:26:24 -07:00
Adeeb Shihadeh
e2687448d6 function doesn't have that arg
old-commit-hash: d712d9cf3b
2020-05-09 17:21:51 -07:00
Adeeb
64b69bda50 LGTM fixes (#1480)
old-commit-hash: 008700a6b3
2020-05-09 16:40:43 -07:00
Adeeb Shihadeh
45b9284fd0 don't need c capnp any more
old-commit-hash: 27303c2d5d
2020-05-07 21:07:18 -07:00