Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_ #55

Closed
wants to merge 149 commits into from
Closed

_ #55

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
96a2370
Submission
hannesa2 May 13, 2018
90a948a
Model with BRG2RGB conversion
hannesa2 May 14, 2018
ab8b3b6
Add images and update README
hannesa2 May 14, 2018
54d1e5d
Add an older working model.h5 file
hannesa2 May 14, 2018
a53cb7d
Update for Keras
hannesa2 Jul 13, 2020
45dce67
Fix NN architecture
hannesa2 Jul 14, 2020
47838c8
Comment
hannesa2 Mar 20, 2021
7e1fbdd
Add the Udacity simulator starter code
hannesa2 Jul 13, 2020
ab5eee5
Test model
hannesa2 Jul 24, 2020
0a1003d
Coverted model_test_5 to TFLite
hannesa2 Jul 24, 2020
30f90bc
Convert model to TFLite before saving
hannesa2 Jul 24, 2020
46ec01b
Implemented TData clas data.py which can be configure using config.in…
hannesa2 Jul 24, 2020
522fa0f
Adding training for the real data from the pi
hannesa2 Jul 24, 2020
9e2b330
Add trained tflite model
hannesa2 Jul 24, 2020
e2f30e2
initial work on TensorFlow Lite
hannesa2 Jul 24, 2020
a6aee90
Data model 3
hannesa2 Jul 24, 2020
a218191
Trained model for single track
hannesa2 Jul 31, 2020
5846ff9
New model
hannesa2 Jul 31, 2020
dce07a4
visualize data
hannesa2 Jul 31, 2020
7031c9f
Cleaned data
hannesa2 Jul 31, 2020
d618eb6
New Model
hannesa2 Jul 31, 2020
f1d9d0a
Model 7
hannesa2 Jul 31, 2020
cc5de59
Add accuracy function
hannesa2 Jul 31, 2020
fb02d15
Fix accuracy
hannesa2 Jul 31, 2020
d2fc18f
Model 8
hannesa2 Jul 31, 2020
1a86ea3
Add Gaussian blur
hannesa2 Jul 31, 2020
cf54ffd
Model 8 blur
hannesa2 Jul 31, 2020
b57e1e0
ignore .idea
hannesa2 Jan 16, 2021
b1d52dd
Install Python dependencies in udacity-simulation
hannesa2 Mar 20, 2021
19a1b43
Python installation with conda
hannesa2 Mar 21, 2021
b71fe80
Gitlab CI
hannesa2 Mar 21, 2021
3c7c78a
Code Format
hannesa2 Mar 21, 2021
31584c9
Merge branch 'CI-Codecheck' into 'master'
hannesa2 Mar 21, 2021
b8b3490
.gitignore venv
hannesa2 Mar 22, 2021
881080b
Virtual env README
hannesa2 Mar 22, 2021
71ac778
Improved install check
hannesa2 Mar 22, 2021
1cc91d9
Modell learning outcome on macOS x86
hannesa2 Mar 22, 2021
08984cb
Fix model training on Apple Silicion
hannesa2 Mar 22, 2021
874ecad
Time measurement
hannesa2 Mar 22, 2021
9d55610
Requirements on Jetson
hannesa2 Mar 22, 2021
42be832
Code cosmetic
hannesa2 Mar 22, 2021
c49406d
Speedtest
hannesa2 Mar 23, 2021
b3cc735
Remove noise
hannesa2 Mar 23, 2021
fc20090
Jetson Nano install
hannesa2 Mar 23, 2021
281aabc
Speeds test
hannesa2 Mar 29, 2021
cc7c03d
More verbose
hannesa2 Apr 4, 2021
4420215
Speedtest
hannesa2 Nov 11, 2021
7d8762a
CI on Jetson Nano
hannesa2 Mar 12, 2023
c801888
Remove outdated code
hannesa2 Mar 12, 2023
c8e8d26
Merge pull request #1 from RaspberryCar/Jetson-CI
hannesa2 Mar 12, 2023
aaa7cbd
M1 runner
hannesa2 Mar 12, 2023
404df9a
Bump dependencies for MacOS arm64
hannesa2 Mar 12, 2023
7d86f8f
Sort requirements
hannesa2 Mar 13, 2023
59e70da
No numpy
hannesa2 Mar 13, 2023
bc8d97a
No Pillow
hannesa2 Mar 13, 2023
f5e8a1f
No grpcio
hannesa2 Mar 13, 2023
766fcec
No h5py
hannesa2 Mar 13, 2023
87c6b10
Merge pull request #2 from RaspberryCar/M1-runner
hannesa2 Mar 13, 2023
d2de710
Speedtest README
hannesa2 Mar 13, 2023
1a13293
Test installation
hannesa2 Mar 13, 2023
0804774
Doku about first and outdated M1 usage
hannesa2 Mar 13, 2023
3ba13f2
Merge pull request #7 from RaspberryCar/TestInstallation
hannesa2 Mar 13, 2023
87b4755
Speed test README
hannesa2 Mar 14, 2023
78c2194
Readme
hannesa2 Mar 14, 2023
4b87245
Jetson README
hannesa2 Mar 14, 2023
e7e17df
Logging
hannesa2 Mar 17, 2023
6f55b7b
Keep changes in CI
hannesa2 Mar 18, 2023
0a063d4
Merge pull request #10 from RaspberryCar/KeepChangesCI
hannesa2 Mar 18, 2023
ca1afa5
Train data with Raspberry output
hannesa2 Mar 18, 2023
9b020b1
carData submodule
hannesa2 Mar 18, 2023
41a2e3a
Train data in CI
hannesa2 Mar 18, 2023
e2dfb2f
Merge pull request #11 from RaspberryCar/train
hannesa2 Mar 19, 2023
36668cc
Give model a timestamp name
hannesa2 Mar 19, 2023
c36a787
Cleanup from old models
hannesa2 Mar 19, 2023
23a0a12
Code format
hannesa2 Mar 19, 2023
9931764
Rename training
hannesa2 Mar 19, 2023
e467461
Readme
hannesa2 Mar 19, 2023
2203b21
Merge pull request #12 from RaspberryCar/RenameTraining
hannesa2 Mar 19, 2023
7d4349c
Rename data car submodule
hannesa2 Mar 19, 2023
f3efa62
Merge pull request #13 from RaspberryCar/RenamePiData
hannesa2 Mar 19, 2023
1e1d44a
UDACity train
hannesa2 Mar 19, 2023
e547466
Merge pull request #15 from RaspberryCar/UDACityTrain
hannesa2 Mar 19, 2023
6c8e508
Rename
hannesa2 Mar 19, 2023
b3aa1a7
Merge pull request #16 from RaspberryCar/rename
hannesa2 Mar 19, 2023
f6c10a0
Cleanup
hannesa2 Mar 19, 2023
6cc6d25
Show num GPUs
hannesa2 Mar 21, 2023
3e8167a
Merge pull request #17 from RaspberryCar/ShowNumGPUs
hannesa2 Mar 21, 2023
198c5da
List GPU devices
hannesa2 Mar 21, 2023
f1f5ccd
Merge pull request #18 from RaspberryCar/ListGPUdevices
hannesa2 Mar 21, 2023
524199d
Rename model path
hannesa2 Apr 11, 2023
edeafa0
Release job
hannesa2 Apr 11, 2023
c2f9636
Increase batch size (better for M1)
hannesa2 Mar 22, 2023
bfeec35
Merge pull request #20 from RaspberryCar/IncreseBatchSize
hannesa2 Apr 13, 2023
c2c1e81
python 3.9
hannesa2 Dec 6, 2024
d1a0216
NumPy < 2.0
hannesa2 Dec 6, 2024
4f31c5d
List installed python
hannesa2 Dec 6, 2024
b8688c3
Merge pull request #26 from RaspberryCar/Python3.9
hannesa2 Dec 6, 2024
0429df1
Deactivate in advance
hannesa2 Dec 6, 2024
e1b0858
Merge pull request #28 from RaspberryCar/DeactiviteInAdvance
hannesa2 Dec 6, 2024
6b3e7f5
Bump idna
hannesa2 Dec 6, 2024
48cde46
Bump more libs
hannesa2 Dec 6, 2024
de9992e
Merge pull request #29 from RaspberryCar/BumpLibs
hannesa2 Dec 6, 2024
74f852b
Merge pull request #31 from RaspberryCar/BumpMoreLibs
hannesa2 Dec 6, 2024
83f904c
Bump rsa
hannesa2 Dec 6, 2024
22b5c6c
Bump protobuff
hannesa2 Dec 6, 2024
6d4d0a6
Merge pull request #33 from RaspberryCar/BumpRsa
hannesa2 Dec 6, 2024
6b4f11d
Merge pull request #32 from RaspberryCar/BumpProtobuf
hannesa2 Dec 6, 2024
1b0fc7c
Bump protobuff
hannesa2 Dec 6, 2024
82189f4
Merge pull request #34 from RaspberryCar/BumpProtobuf
hannesa2 Dec 6, 2024
29f08e7
Bump eventlet
hannesa2 Dec 6, 2024
c0080f1
Merge pull request #35 from RaspberryCar/BumpEeventlet
hannesa2 Dec 6, 2024
a2ff677
Bump urllib3
hannesa2 Dec 6, 2024
139ecfc
Merge pull request #36 from RaspberryCar/BumpUrllib3
hannesa2 Dec 6, 2024
0941832
Bump Tensorflow 2.15
hannesa2 Dec 6, 2024
99ec47a
Bump google-auth
hannesa2 Dec 6, 2024
88179ef
Bump Keras
hannesa2 Dec 6, 2024
cd8df36
Merge pull request #30 from RaspberryCar/BumpTensorflow
hannesa2 Dec 6, 2024
3053ec5
Skip greenlet
hannesa2 Dec 6, 2024
f0239e6
Merge pull request #37 from RaspberryCar/SkipGreenlet
hannesa2 Dec 6, 2024
4248f74
Action name
hannesa2 Dec 6, 2024
cd651cb
Better GPU info
hannesa2 Dec 7, 2024
6a42e7a
Merge pull request #38 from RaspberryCar/BetterGPUInfo
hannesa2 Dec 7, 2024
5af02f9
Print python
hannesa2 Dec 7, 2024
5b378dd
Merge pull request #40 from RaspberryCar/PrintPython
hannesa2 Dec 7, 2024
4ad5637
Change order
hannesa2 Dec 7, 2024
0152bf9
python 3.10
hannesa2 Dec 6, 2024
1572e73
Force python 3.10
hannesa2 Dec 6, 2024
9a108e4
Matrix python
hannesa2 Dec 7, 2024
9b9f305
Merge pull request #27 from RaspberryCar/Python-3.10
hannesa2 Dec 7, 2024
b8c9692
Bump tensorflow-macos
hannesa2 Dec 7, 2024
a905ca7
Remove eager execution
hannesa2 Dec 7, 2024
33c1445
Merge pull request #39 from RaspberryCar/BumpTensorflow
hannesa2 Dec 7, 2024
5ab0e5e
idna==3.10
hannesa2 Dec 7, 2024
b2cc61b
Merge pull request #43 from RaspberryCar/BumpIdna
hannesa2 Dec 7, 2024
12e96d3
Sort requirements
hannesa2 Dec 7, 2024
25ad24c
Speed test with batch size
hannesa2 Dec 7, 2024
7bb880b
Speed measure
hannesa2 Dec 7, 2024
ff10dac
Iterate through batch size
hannesa2 Dec 8, 2024
cf6654b
Merge pull request #46 from RaspberryCar/measure
hannesa2 Dec 8, 2024
da4d1bc
More verbose in measure
hannesa2 Dec 8, 2024
7a29637
Measure with line chart
hannesa2 Dec 9, 2024
cafb6cf
Scriptname in plot
hannesa2 Dec 9, 2024
9989ad1
Matrix speedtestBig with batch_size
hannesa2 Dec 9, 2024
dccf3c3
Build on Linux
hannesa2 Mar 13, 2023
261dce1
Linux Matrix
hannesa2 Nov 27, 2024
5641dc5
Split requirements for python version
hannesa2 Dec 6, 2024
d698999
Speed measure on Linux
hannesa2 Dec 9, 2024
48670b3
Speedtest big
hannesa2 Mar 13, 2023
5e471ac
runner data
hannesa2 Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions .github/workflows/BuildPRApple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Apple

on:
push:
branches:
- master
pull_request:

jobs:
build:
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ M1 ]
py: [ "3.10" ]
steps:
- name: branch
run:
echo HEAD_REF=${{ github.HEAD_REF }}
- name: Python install
run: brew install python@${{ matrix.py }}
- name: Python3 version
run: |
brew list | grep python
echo
python3 -V
echo python3=$(python3 -V)
shopt -s expand_aliases
alias python3='python${{ matrix.py }}'
echo "alias set"
echo python3=$(python3 -V)
python3 -V
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Install requirements
run: |
deactivate || echo "Ignore result"
rm -rf venv/
python${{ matrix.py }} -m venv venv
source venv/bin/activate
python${{ matrix.py }} -m pip install --upgrade pip
python${{ matrix.py }} -m pip install -r requirements.txt
- name: Check tensorflow
run: |
source venv/bin/activate
python${{ matrix.py }} -c 'import tensorflow as tf; print("tensorflow=", tf.__version__)'
echo
python${{ matrix.py }} ./playground/numpyTest.py
python${{ matrix.py }} ./playground/testInstallation.py
- name: Speed test
run: |
source venv/bin/activate
python${{ matrix.py }} ./playground/speedTest.py
- name: Speed measure
if: github.HEAD_REF == 'measure' || startsWith(github.HEAD_REF, 'measure')
run: |
source venv/bin/activate
python${{ matrix.py }} ./playground/speedMeasurement.py
python3 ./playground/speedTest.py
- name: Speed test big
run: |
source venv/bin/activate
python${{ matrix.py }} ./playground/speedTestBig.py
- name: Train car data
run: |
source venv/bin/activate
python${{ matrix.py }} ./trainRaspiCar.py
# - name: Train UDACity data
# run: |
# source venv/bin/activate
# python${{ matrix.py }} ./trainUDACity.py

- name: Prepare changes
run: |
git add .
git commit --dry-run && echo "Things to commit" || echo "Clean repo, nothing to archive"
if git commit --dry-run; then
git reset .
mkdir ./modified-files
git ls-files -o --exclude-standard
echo "Changes detected new"
git ls-files -o --exclude-standard | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
git ls-files --modified
echo "Changes detected changed"
git ls-files --modified | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
else
echo "Clean repo"
fi
- name: Archive changes
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: changed
path: ./modified-files
95 changes: 95 additions & 0 deletions .github/workflows/BuildPRLinux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Linux

on:
push:
branches:
- master
pull_request:

jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
py: [ "3.9" ]
include:
- os : ubuntu-22.04
py: "3.10"
- os: data
py: "3.10"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Python install
run: sudo apt-get install python${{ matrix.py }} python${{ matrix.py }}-dev python${{ matrix.py }}-distutils python${{ matrix.py }}-venv
- name: Python3 version
run: python3 --version
- name: Install requirements
run: |
rm -rf venv/
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-${{ matrix.py }}.txt
- name: Show graphic card
run: lspci | grep VGA
- name: Check tensorflow
run: |
source venv/bin/activate
python3 -c 'import tensorflow as tf; print("tensorflow=", tf.__version__)'
python3 ./playground/numpyTest.py
python3 ./playground/testInstallation.py
- name: Speed test
run: |
source venv/bin/activate
python3 ./playground/speedTest.py
- name: Speed measure
if: github.HEAD_REF == 'measure' || startsWith(github.HEAD_REF, 'measure')
run: |
source venv/bin/activate
python${{ matrix.py }} ./playground/speedMeasurement.py
- name: Train car data
run: |
source venv/bin/activate
python3 ./trainRaspiCar.py
# - name: Train UDACity data
# run: |
# source venv/bin/activate
# python3 ./trainUDACity.py

- name: Prepare changes
run: |
git add .
git commit --dry-run && echo "Things to commit" || echo "Clean repo, nothing to archive"
if git commit --dry-run; then
git reset .
mkdir ./modified-files
git ls-files -o --exclude-standard
echo "Changes detected new"
git ls-files -o --exclude-standard | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
git ls-files --modified
echo "Changes detected changed"
git ls-files --modified | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
else
echo "Clean repo"
fi
- name: Archive changes
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: changed
path: ./modified-files
84 changes: 84 additions & 0 deletions .github/workflows/BuildRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: build

on:
push:
tags:
- '*'

jobs:
build-gitx:
name: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ M1 ]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v2
with:
skip-unshallow: 'true'
abbrev: false
commit-ish: HEAD
- name: Python install
run: brew install python@3.10
- name: Python3 version
run: python3 --version
- name: Install requirements
run: |
rm -rf venv/
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Check tensorflow
run: |
source venv/bin/activate
python3 -c 'import tensorflow as tf; print("tensorflow=", tf.__version__)'
python3 ./playground/numpyTest.py
python3 ./playground/testInstallation.py
- name: Train car data
run: |
source venv/bin/activate
python3 ./trainRaspiCar.py

- name: Prepare changes
run: |
git add .
git commit --dry-run && echo "Things to commit" || echo "Clean repo, nothing to archive"
if git commit --dry-run; then
git reset .
mkdir ./modified-files
git ls-files -o --exclude-standard
echo "Changes detected new"
git ls-files -o --exclude-standard | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
git ls-files --modified
echo "Changes detected changed"
git ls-files --modified | while read filename
do
echo "Printing: $filename"
cp "$filename" ./modified-files
done
else
echo "Clean repo"
fi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.tagger.outputs.tag}}
generate_release_notes: true
name: ${{steps.tagger.outputs.tag}}
files: |
./modified-files/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.env/
udacity-simulator/data/
udacity-simulator/*.zip
*.pyc
.vscode/
*.h5
udacity-simulator/data1/
.idea

venv
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://hub.docker.com/r/library/python/tags/
image: "python:3.8" #commands to run in the Docker container before starting each job.
before_script:
- python --version
- pip --version
- pip install -r requirements.txt
stages:
- Static Analysis
- Test
pylint:
stage: Static Analysis
script:
- pylint -d C0301 *.py
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "dataPiCar"]
path = dataPiCar
url = git@github.com:RaspberryCar/dataPiCar.git
Loading
Loading