From 26ce053681d28502e54fc7ff9f3bb4bc58923bd4 Mon Sep 17 00:00:00 2001 From: "Anwar, Malik Aqeel" Date: Mon, 17 Feb 2020 04:09:50 -0500 Subject: [PATCH] Readme update --- configs/config.cfg | 2 +- environments/initial_positions.py | 32 ++++++++++++++++++++++--------- requirements.txt | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/configs/config.cfg b/configs/config.cfg index 76c4e3c..82485f3 100644 --- a/configs/config.cfg +++ b/configs/config.cfg @@ -3,7 +3,7 @@ run_name: Tello_indoor custom_load: True custom_load_path: models/trained/Indoor/indoor_cloud/Imagenet/e2e/e2e env_type: Indoor -env_name: indoor_frogeyes +env_name: indoor_techno phase: infer diff --git a/environments/initial_positions.py b/environments/initial_positions.py index fde3250..2b56e64 100644 --- a/environments/initial_positions.py +++ b/environments/initial_positions.py @@ -63,7 +63,7 @@ def indoor_meta(): 'GT1', 'GT2', 'GT3', ] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ @@ -94,7 +94,21 @@ def indoor_cloud(): ] level_name = ['Condo1', 'Condo2', 'Condo3', 'Condo4'] crash_threshold = 0.07 - initZ = -2 + initZ = 0 + return orig_ip, level_name, crash_threshold, initZ + +def indoor_gt(): + # The environment can be downloaded from + # https://drive.google.com/drive/u/2/folders/1u5teth6l4JW2IXAkZAg1CbDGR6zE-v6Z + orig_ip = [ + [-30, 460, 0], # Player start + [640, 900, 270], + [-130, -1600, 200], + [-1000, 350, 200] + ] + level_name = ['GT1', 'GT2', 'GT3', 'GT4'] + crash_threshold = 0.07 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ def indoor_techno(): @@ -108,7 +122,7 @@ def indoor_techno(): ] level_name = ['Techno1', 'Techno2', 'Techno3', 'Techno4'] crash_threshold = 0.07 - initZ = -2 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ def indoor_vanleer(): @@ -122,7 +136,7 @@ def indoor_vanleer(): ] level_name = ['VanLeer1', 'VanLeer2', 'VanLeer3', 'VanLeer4'] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ def indoor_long(): @@ -138,7 +152,7 @@ def indoor_long(): ] level_name = ['Long1', 'Long2', 'Long3', 'Long4', 'Long5', 'Long6'] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ def indoor_pyramid(): @@ -152,7 +166,7 @@ def indoor_pyramid(): ] level_name = ['Pyramid1', 'Pyramid2', 'Pyramid3', 'Pyramid4'] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ @@ -167,7 +181,7 @@ def indoor_frogeyes(): ] level_name = ['Pyramid1', 'Pyramid2', 'Pyramid3', 'Pyramid4'] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ @@ -182,7 +196,7 @@ def indoor_twist(): ] level_name = ['Twist1', 'Twist2', 'Twist3', 'Twist4'] crash_threshold = 0.07 - initZ = -1 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ @@ -194,7 +208,7 @@ def indoor_pretzel(): ] level_name = ['Cloud1', 'Cloud2', 'Cloud3'] crash_threshold = 0.07 - initZ = -1.5 + initZ = 0 return orig_ip, level_name, crash_threshold, initZ def initial_positions(name): diff --git a/requirements.txt b/requirements.txt index 6e5f5c3..d8506d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,7 @@ Markdown==3.1.1 matplotlib==3.0.3 msgpack-python==0.5.6 msgpack-rpc-python==0.4.1 -numpy==1.17.2 +numpy==1.15.4 opencv-python==4.1.1.26 opt-einsum==3.1.0 Pillow==6.2.0