andreasjansson / train-dynamic-system

  • Public
  • 164 runs

Input

Run this model in Node.js with one line of code:

npx create-replicate --model=andreasjansson/train-dynamic-system
or set up a project from scratch
npm install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import and set up the client:
import Replicate from "replicate";

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

Run andreasjansson/train-dynamic-system using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "andreasjansson/train-dynamic-system:564f4fc5cb32e7529a51583e29404c3e8b9779475c5957f4c33b083657c8f062",
  {
    input: {
      width: 128,
      height: 128,
      timeout: 600,
      loss_cycles: 4,
      yield_every: 250,
      cycle_length: 20,
      total_cycles: 6,
      learning_rate: 0.005,
      max_variables: 100,
      training_steps: 1000,
      return_animation: true
    }
  }
);

console.log(output);

To learn more, take a look at the guide on getting started with Node.js.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.