Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
slm-env-3dball
Advanced tools
Unity environment binaries for SLM-Lab, built from kengz/ml-agents.
If you're just using prebuilt environments for the Lab, just install the released binaries via yarn
: e.g. yarn add slm-env-3dball
.
This repository hosts the built Unity environment binaries released to npm
.
You need this repo SLM-Env
and the builder repo kengz/ml-agents
(use the fork as opposed to Unity/ml-agents
).
git clone https://github.com/kengz/SLM-Env.git
git clone https://github.com/kengz/ml-agents.git
Then follow the setup instruction and intro from ml-agents
for Unity.
Since the binaries are committed to Github, released on npm
, and used by SLM-Lab, follow the convention compatible to all of them.
CamelCase
, e.g. 3DBall
env_name
: kebab-case
, e.g. 3dball
env_name
: kebab-case
, e.g. 3dball
npm
package name prepended with slm-env-
, e.g. slm-env-3dball
Build your Unity environment and commit asset source code to ml-agents
repo. For the most part follow the original doc. Remember the core settings:
Player > Resolution and Presentation > Run in Background (checked)
Player > Resolution and Presentation > Display Resolution Dialog (Disabled)
Academy > Brain > External
When ready to build binary, decide on an env_name
, e.g. 3dball
. You may want to check on npm
that the name slm-env-3dball
is not already taken, so you can release.
Come to this SLM-Env
repo, create a new git branch from master
:
cd SLM-Env
git checkout master
git checkout -b 3dball
SLM-Env/build/
:Academy > Training Configuration
as follow (or leave as-is if smaller than Inference Configuration
):
SLM-Env/build/
3dball
Training Configuration
same as MacOSXHeadless Mode (checked)
3dball
Next, ready to release.
package.json
and update:envname
as proper: "name": "slm-env-3dball",
"version": "1.0.0",
build/
folder and package.json
:git add build/
git add package.json
git commit -m 'add 3dball'
git push --set-upstream origin 3dball
npm
(make sure you are logged in first, by npm login
):npm publish
Since the binaries are huge, npm
will throw an error near the end of it. Just ignore that.
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! You cannot publish over the previously published version 1.0.0. : slm-env-3dball
It should be available on npmjs.com, just search for your package slm-env-3dball
.
SLM-Lab
for usage: yarn add slm-env-3dball
FAQs
SLM Env
The npm package slm-env-3dball receives a total of 0 weekly downloads. As such, slm-env-3dball popularity was classified as not popular.
We found that slm-env-3dball demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.