Commit 4a4ca442 authored by Benjamin Beyret's avatar Benjamin Beyret
Browse files

revert to 84x84 for evaluation

parent 82d5a404
......@@ -170,7 +170,7 @@ features with the agent's frames in order to have frames in line with the config
## Version History
- v1.0.5
- Adds customisable resolution during evaluation
- ~~Adds customisable resolution during evaluation~~ (removed, evaluation is only `84x84`)
- Update `animalai-train` to tf 1.14 to fix `gin` broken dependency
- Release source code for the environment (no support to be provided on this for now)
- Fixes some legacy dependencies and typos in both libraries
......
......@@ -16,11 +16,7 @@ experiments we will run, therefore we provide the agent with the length of the e
are the ones returned by the Gym environment `AnimalAIEnv` from `animalai.envs.environment`. If you wish to directly
work on the ML Agents `BrainInfo` you can access them via `info['brain_info']`
**NEW (v1.0.4)**: you can now select the resolution of the observation your agent takes as input, this argument will be passed to the environment directly (must be between 4 and 256). To do so add the line below to the `__init__` constructor of your agent:
```
self.resolution = 84 # can be between 4 and 256
```
~~**NEW (v1.0.4)**: you can now select the resolution of the observation your agent takes as input, this argument will be passed to the environment directly (must be between 4 and 256)~~ (this option was removed, for evaluation inputs are 84x84, [see discussion](https://github.com/beyretb/AnimalAI-Olympics/issues/61#issuecomment-521933419))
Make sure any data loaded in the docker is referred to using **absolute paths** in the container or the form `/aaio/data/...` (see below). An example that you can modify is provided [here](https://github.com/beyretb/AnimalAI-Olympics/blob/master/examples/submission/agent.py)
......
......@@ -28,11 +28,11 @@ def main():
try:
resolution = submitted_agent.resolution
assert 4 <= resolution <= 256
assert resolution == 84
except AttributeError:
resolution = 84
except AssertionError:
print('Resolution must be between 4 and 256')
print('Resolution must be between 84 for testing')
return
env = AnimalAIEnv(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment