Git Product home page Git Product logo

btt's Introduction

Bergen Tech Training Student Workshop for Self-Driving RC Cars

We'll be using the (FOOCars project([https://github.com/fubarlabs/foocars] from Fair Use Building and Research Labs

The students will have 10 - 14 cars to collect data with.

There are internet bandwidth issues so the normal internet train with a Jupyter Notebook will have to be done locally.

There are somethings that need to be confirmed and then we can make the process of uploading data, training, and placing the weights back on the cars conveniently.

  • Did we set up key based SSH access?

    • If so this allows us to script getting the data from the car to training stations.
  • Confirm how many training statiosn we can have.

    • Make sure they are on the same network

The cars are configured to use mDNS which mean we can find each car easily.

  • But we'll need a list of all the cars so we can script the resolts

The Training system can have a local Jupyter notebok or do training from the command line.

One thing that can would make it helpful is if the students could use a web page on the training machine and upload, train, then download their results.

notes: Another concern is to make sure there is enough space on the car pi.

#list images
docker image ls

#find unused images
docker image ls -f dangling=true

#Remove/Prune unused images
docker image prune

#remove all
docker image prune -a


One way to make getting the data out of the Docker image is to make sure to run with a volume. Then use

#!/bin/bash

# Set the name of the volume and the container image
VOLUME_NAME="foocarsdata"
IMAGE_NAME="debian:10"

# Create a temporary container to access the volume data
CONTAINER_ID=$(docker run -d -v $VOLUME_NAME:/foocars/cars/chiaracer --entrypoint /bin/sleep $IMAGE_NAME 1d)

# Create a backup of the data in the volume using tar
docker exec $CONTAINER_ID sh -c "cd /foocars/cars/chiaracer && tar czf data_backup.tar.gz data/"

# Copy the backup file to the host
docker cp $CONTAINER_ID:/foocars/cars/chiaracer/data_backup.tar.gz .

# Stop and remove the temporary container
docker stop $CONTAINER_ID

# Print the location of the backup file
echo "Data backup saved as data_backup.tar.gz in the current directory."

btt's People

Contributors

rianders avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.