Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
slm-env-2dball
Advanced tools
Readme
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-2dball receives a total of 2 weekly downloads. As such, slm-env-2dball popularity was classified as not popular.
We found that slm-env-2dball 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.