浏览代码

Addressing Vince's PR comments.

- Highlighting Python snippet in FAQ.
- Fixing import in Python API doc.
- ml-agents-protbuf now automatically places generated files in
  the correct directory.
/develop-generalizationTraining-TrainerController
Deric Pang 6 年前
当前提交
62697767
共有 4 个文件被更改,包括 8 次插入12 次删除
  1. 4
      docs/FAQ.md
  2. 2
      docs/Python-API.md
  3. 6
      ml-agents-protobuf/README.md
  4. 8
      ml-agents-protobuf/make.bat

4
docs/FAQ.md


communication port {} is still in use. "`, you can change the worker number in
the Python script when calling
`UnityEnvironment(file_name=filename, worker_id=X)`
```python
UnityEnvironment(file_name=filename, worker_id=X)
```
## Mean reward : nan

2
docs/Python-API.md


environment is 3DBall.app, in python, run:
```python
from unityagents import UnityEnvironment
from mlagents.env import UnityEnvironment
env = UnityEnvironment(file_name="3DBall", worker_id=0, seed=1)
```

6
ml-agents-protobuf/README.md


1. Install pre-requisites.
2. Un-comment line 4 in `make.bat`, and set to correct Grpc.Tools sub-directory.
3. Run `make.bat`
4. Copy created `communicator_objects` and `CommunicatorObjects` folders to
their respective sub-directories within the `ml-agents` repository.
* For Python, the generated files should be copied to:
`mlagents/envs/communicator_objects`
* For C#, the generated files should be copied to:
`MLAgentsSDK/Assets/ML-Agents/Scripts/CommunicatorObjects`.

8
ml-agents-protobuf/make.bat


# GRPC-TOOLS required. Install with `nuget install Grpc.Tools`.
# Then un-comment and replace [DIRECTORY] with location of files.
# For example, on macOS, you might have something like:
COMPILER=Grpc.Tools.1.14.1/tools/macosx_x64
# COMPILER=Grpc.Tools.1.14.1/tools/macosx_x64
DST_DIR_C=cs/CommunicatorObjects
DST_DIR_P=python
DST_DIR_C=../MLAgentsSDK/Assets/ML-Agents/Scripts/CommunicatorObjects
DST_DIR_P=..
PROTO_PATH=proto
PYTHON_PACKAGE=mlagents/envs/communicator_objects

rm -rf $DST_DIR_P
rm -rf $DST_DIR_P/$PYTHON_PACKAGE
mkdir -p $DST_DIR_C
mkdir -p $DST_DIR_P/$PYTHON_PACKAGE

正在加载...
取消
保存