Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ML-Agents Package #3267

Merged
merged 39 commits into from
Jan 28, 2020
Merged

Create ML-Agents Package #3267

merged 39 commits into from
Jan 28, 2020

Conversation

surfnerd
Copy link
Contributor

@surfnerd surfnerd commented Jan 22, 2020

Convert the UnitySDK to a Packman Package

  • Separate Examples into a sample project.
  • Move core UnitySDK Code into com.unity.ml-agents.
  • Create asmdefs for the ml-agents package.
  • Add package validation tests for win/linux/max.
  • Update protobuf generation scripts.
  • Add Barracuda as a package dependency for ML-Agents. (users no longer have to install it themselves).

Things to follow up on:

  • Package Documentation.
    • Remove template documentation.
    • Add Proper package docs.
  • Change current installation documentation.
  • Update all references to UnitySDK and/or Examples to point to the right places.
  • Update cloudbuild configurations to point to the project folder.

@surfnerd surfnerd self-assigned this Jan 22, 2020
@surfnerd surfnerd closed this Jan 22, 2020
@surfnerd surfnerd force-pushed the master-create-package branch from 7e3d470 to a591234 Compare January 22, 2020 19:24
@surfnerd surfnerd reopened this Jan 22, 2020
@@ -32,7 +32,7 @@ Pyramids:
max_steps: 5.0e5
num_epoch: 3
behavioral_cloning:
demo_path: UnitySDK/Assets/ML-Agents/Examples/Pyramids/Demos/ExpertPyramid.demo
demo_path: Project/Assets/ML-Agents/Examples/Pyramids/Demos/ExpertPyramid.demo
Copy link
Contributor Author

@surfnerd surfnerd Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All demo files are now in the Project folder. Should we put them in the Samples section of the package?

@@ -38,14 +38,16 @@ importing the ML-Agents assets into it:

1. Launch the Unity Editor and create a new project named "RollerBall".
2. Make sure that the Scripting Runtime Version for the project is set to use
**.NET 4.x Equivalent** (This is an experimental option in Unity 2017,
**.NET 4.x Equivalent** (This s an experimental option in Unity 2017,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how this happened.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mv -R --lossy?

@@ -6,6 +6,9 @@
using MLAgents.CommunicatorObjects;
using MLAgents.Sensor;
using UnityEngine;
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("Unity.ML-Agents.Editor")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the assembly that this file is in internally visible to the Editor assembly.

@surfnerd surfnerd force-pushed the master-create-package branch from f22d75b to 663a437 Compare January 24, 2020 23:42
@surfnerd surfnerd marked this pull request as ready for review January 27, 2020 22:48
@surfnerd surfnerd force-pushed the master-create-package branch from a86a2c3 to 1aee56c Compare January 27, 2020 22:51
@surfnerd surfnerd requested a review from xiaomaogy January 27, 2020 22:53
Copy link
Contributor

@chriselion chriselion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@surfnerd surfnerd changed the title WIP: Create ML-Agents Package Create ML-Agents Package Jan 27, 2020
Copy link
Contributor

@harperj harperj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Echo @chriselion's sentiment about removing or changing the placeholder documentation files, but otherwise this PR LGTM

"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"System.IO.Abstractions.dll",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we actually need these? Is this to help with platform filesystems?

.yamato/com.unity.ml-agents-pack.yml Outdated Show resolved Hide resolved
@@ -73,7 +73,7 @@ In addition to our own documentation, here are some additional, relevant article

The ML-Agents toolkit is an open-source project and we encourage and welcome
contributions. If you wish to contribute, be sure to review our
[contribution guidelines](CONTRIBUTING.md) and
[contribution guidelines](com.unity.ml-agents/CONTRIBUTING.md) and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does CONTRIBUTING.md only concerns the package? Do we need another contributing doc for the Examples ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thinking was we would link to this one since it's required for packages. But we could just copy it instead of linking it. What do you think?

@@ -7,7 +7,7 @@ of guidelines to ensure that your extensions can be easily integrated.

## Communication

First, please read through our [code of conduct](CODE_OF_CONDUCT.md), as we
First, please read through our [code of conduct](https://github.com/Unity-Technologies/ml-agents/blob/master/CODE_OF_CONDUCT.md), as we
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will eventually break, we should try to use relative locations for the documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A package will be created from this and a relative path won't make sense once that happens, hence the full URL.

com.unity.ml-agents/LICENSE.md Show resolved Hide resolved
{
"name": "Unity.ML-Agents.Tests",
"references": [
"Unity.ML-Agents",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it okay to have - in the name? Would Unity.MLAgents be better ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it matters, what do you prefer?

@@ -54,7 +54,7 @@ ML-Agents toolkit은 유니티의 풍부한 환경에서 인공지능 에이전
## 커뮤니티 그리고 피드백

ML-Agents toolkit은 오픈소스 프로젝트이며 컨트리뷰션을 환영합니다. 만약 컨트리뷰션을 원하시는 경우
[컨트리뷰션 가이드라인](CONTRIBUTING.md)과 [행동 규칙](CODE_OF_CONDUCT.md)을 검토해주십시오.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The localized documentation is frozen and should not change. It is tied to a specific version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would make sense if the links were tied to that specific version, but they are not. Do you want me to revert those changes?

@surfnerd surfnerd force-pushed the master-create-package branch from 2422670 to e7267aa Compare January 28, 2020 00:44
@surfnerd surfnerd force-pushed the master-create-package branch from e7267aa to b81b87d Compare January 28, 2020 17:06
@surfnerd surfnerd merged commit a22b62f into master Jan 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the master-create-package branch January 28, 2020 18:35
@Parktaeryang
Copy link

How to install Grpc.Tools-Version1.14.1 into specific directory( $MLAGENTS_ROOT\protobuf-definitions)using Anaconda3??
I don't know the command Nuget and pip. What should I use and do???
That is only things I have to do. Please help me

Navigate to your installation of nuget and run the following:

nuget install Grpc.Tools -Version 1.14.1 -OutputDirectory $MLAGENTS_ROOT\protobuf-definitions

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants