-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from MIT-TESSE/0.1.1-SNAPSHOT
0.1.1 snapshot
- Loading branch information
Showing
24 changed files
with
700 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
simulator/ | ||
|
||
__pycache__ | ||
|
||
*.pyc | ||
.vscode/ | ||
logs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
################################################################################################### | ||
# DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited. | ||
# | ||
# This material is based upon work supported by the Under Secretary of Defense for Research and | ||
# Engineering under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions | ||
# or recommendations expressed in this material are those of the author(s) and do not necessarily | ||
# reflect the views of the Under Secretary of Defense for Research and Engineering. | ||
# | ||
# (c) 2020 Massachusetts Institute of Technology. | ||
# | ||
# MIT Proprietary, Subject to FAR52.227-11 Patent Rights - Ownership by the contractor (May 2014) | ||
# | ||
# The software/firmware is provided to you on an As-Is basis | ||
# | ||
# Delivered to the U.S. Government with Unlimited Rights, as defined in DFARS Part 252.227-7013 | ||
# or 7014 (Feb 2014). Notwithstanding any copyright notice, U.S. Government rights in this work | ||
# are defined by DFARS 252.227-7013 or DFARS 252.227-7014 as detailed above. Use of this work other | ||
# than as specifically authorized by the U.S. Government may violate any copyrights that exist in | ||
# this work. | ||
################################################################################################### | ||
|
||
from goseek-base:latest | ||
|
||
RUN apt-get update && \ | ||
apt-get install python-opencv -y && \ | ||
pip install stable-baselines && \ | ||
conda install tensorflow-gpu==1.13.1 | ||
|
||
WORKDIR /goseek-challenge | ||
|
||
COPY baselines/agents.py baselines/agents.py | ||
|
||
COPY baselines/config/ppo-agent.yaml agent.yaml | ||
|
||
COPY ppo-weights.pkl ppo-weights.pkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
name: StableBaselinesPPO | ||
weights: '' # MODEL WEIGHT PATH | ||
weights: 'ppo-weights.pkl' # PUT WEIGHTS AT GOSEEK-CHALLENGE ROOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ENV: | ||
sim_path: 'simulator/goseek-v0.1.3.x86_64' | ||
|
||
EPISODE: | ||
scenes: [3, 5] | ||
n_targets: [30, 30] | ||
episode_length: [400, 400] | ||
random_seeds: [10, 100] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generating configuration files | ||
|
||
The follow example generates a configuration file with 10 episodes such as those in [../config](../config). | ||
If you find this useful, please adapt for your own use. | ||
|
||
```py | ||
import random | ||
import yaml | ||
|
||
k = 10 # number of episodes to generate | ||
l = 400 # episode length | ||
f = 30 # number of fruit | ||
scenes = [1, 2, 3, 4, 5] # scenes (1 through 5 are provided) | ||
|
||
data = {} | ||
data['ENV'] = {'sim_path': ''} | ||
|
||
data['EPISODE'] = {'scenes': random.choices(scenes, k=k), | ||
'n_targets': [f for _ in range(k)], | ||
'episode_length': [l for _ in range(k)], | ||
'random_seeds': [random.randint(1, 1e6) for _ in range(k)] | ||
} | ||
|
||
with open('example.yaml', 'w') as outfile: | ||
yaml.dump(data, outfile) | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.