I hereby claim:
- I am wroscoe on github.
- I am wroscoe (https://keybase.io/wroscoe) on keybase.
- I have a public key ASAYbaKFpcoMLmsHgwlrbAdx53rG96DdIAK5XmRiGZSbOgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import os | |
#PATHS | |
CAR_PATH = PACKAGE_PATH = os.path.dirname(os.path.realpath(__file__)) | |
DATA_PATH = os.path.join(CAR_PATH, 'data') | |
MODELS_PATH = os.path.join(CAR_PATH, 'models') | |
#VEHICLE | |
DRIVE_LOOP_HZ = 20 | |
MAX_LOOPS = 100000 |
import Augmentor | |
from Augmentor.Operations import Operation | |
class GeneratePeopleShapes(Augmentor.Operations.Operation): | |
def __init__(self, probability): | |
Operation.__init__(self, probability) | |
@staticmethod | |
def gen_random_rectangle_coords(top, bottom, left, right): | |
width =random.randint(5, 59) |
{"displayFieldName":"","fieldAliases":{"FID":"FID","FID_":"FID_","class":"class","irrigation":"irrigation","subfield":"subfield","Crop":"Crop","Plant_Date":"Plant_Date","Crop_Type":"Crop_Type","mosaic":"mosaic","Division":"Division","Name":"Name","Shape_Leng":"Shape_Leng","Shape_Area":"Shape_Area"},"geometryType":"esriGeometryPolygon","spatialReference":{"wkid":4326,"latestWkid":4326},"fields":[{"name":"FID","type":"esriFieldTypeOID","alias":"FID"},{"name":"FID_","type":"esriFieldTypeInteger","alias":"FID_"},{"name":"class","type":"esriFieldTypeString","alias":"class","length":80},{"name":"irrigation","type":"esriFieldTypeInteger","alias":"irrigation"},{"name":"subfield","type":"esriFieldTypeString","alias":"subfield","length":80},{"name":"Crop","type":"esriFieldTypeString","alias":"Crop","length":80},{"name":"Plant_Date","type":"esriFieldTypeString","alias":"Plant_Date","length":80},{"name":"Crop_Type","type":"esriFieldTypeString","alias":"Crop_Type","length":80},{"name":"mosaic","type":"esriFieldTypeString" |
def drive(cfg, model_path=None, use_joystick=False): | |
''' | |
Construct a working robotic vehicle from many parts. | |
Each part runs as a job in the Vehicle loop, calling either |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import donkeycar as dk\n", | |
"\n", |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 14, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import donkeycar as dk\n", | |
"\n", |
#!/usr/bin/env python3 | |
""" | |
Scripts to drive a donkey 2 car and train a model for it. | |
Usage: | |
car.py (drive) [--model=<model>] | |
car.py (train) (--tub=<tub>) (--model=<model>) | |
car.py (calibrate) | |
""" |
import os | |
import sys | |
import glob | |
import json | |
import shutil | |
def go(src_path, dest_path): | |
''' | |
takes a src and dest full path to two tub dir | |
copies all data from src to the dest |