Commit 1b0fb560 authored by Max Maton's avatar Max Maton

Initial commit

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
*.png
*.jpg
*.mp4
#!/bin/bash
echo $(exiftool -MakerNotes -b "$1" 2>/dev/null | dd bs=1 skip=64 count=19 2>/dev/null | shasum | cut -d' ' -f1)-$(exiftool -CreateDate -T -d %s "$1").jpg
#!/usr/bin/env python3
import tensorflow as tf
import io
import math
with open("/root/highway.csv") as datapoints:
lines = datapoints.readlines()
with open("/root/highway.validation.csv") as validationdatapoints:
validationlines = validationdatapoints.readlines()
points = []
validationpoints = []
for line in lines:
parts = list(map(float, line.split(";")))
if parts[1] == -1 or parts[2] == -1:
continue
points.append([parts[1], parts[2]])
for line in validationlines:
parts = list(map(float, line.split(";")))
if parts[1] == -1 or parts[2] == -1:
continue
validationpoints.append([parts[1], parts[2]])
data = tf.constant(points)
validationdata = tf.constant(validationpoints)
constant = tf.Variable(tf.random_uniform([1], 0.0, 1.0))
linear = tf.Variable(tf.random_uniform([1], 0.0, 1.0))
quad = tf.Variable(tf.random_uniform([1], 0.0, 1.0))
#quad = tf.Variable(1.0)
#linear = tf.Variable(1.0)
#constant = tf.Variable(0.0)
lanewidth = 3.5
def convert(data):
norm = data / 128.0
sqr = tf.square(norm)
return norm * linear + constant
#def convert(data):