andreasjansson / plasma

Generate plasma shader equations

replicate.com
Total runs: 466
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: December 06 2023

Introduction of plasma

Model Details of plasma

Readme

This model uses CodeLlama 7B-instruct with Llama.cpp grammars to generate equations that create plasma shader effects. Refer to the source code for the full grammar and prompt.

To see the plasma in action, you can either use this interactive viewer or ShaderToy.

With ShaderToy you can tweak the colors and everything else. Take the generated effect() function and replace the effect() function in the snippet below. Then copy the whole code snippet into https://www.shadertoy.com/new and hit ▶Compile.

float resolution = 3.0;
float speed = 0.1;
int depth = 4;

vec3 color1 = vec3(235.0/255.0, 231.0/255.0, 92.0/255.0);
vec3 color2 = vec3(223.0/255.0, 72.0/255.0, 67.0/255.0);
vec3 color3 = vec3(235.0/255.0, 64.0/255.0, 240.0/255.0);

// Replace this with the generated effect() function
vec2 effect(vec2 p, float i, float time) {
  return vec2(cos(i * sin(p.x * p.y) + time), sin(length(p.y - p.x) * i + time));
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 p = (2.0 * gl_FragCoord.xy - iResolution.xy) / max(iResolution.x, iResolution.y);
    p *= float(resolution);
    for (int i = 1; i < depth; i++) {
        float fi = float(i);
        p += effect(p, fi, iTime * float(speed));
    }
    vec3 col = mix(mix(color1, color2, 1.0-sin(p.x)), color3, cos(p.y+p.x));
    fragColor = vec4(col, 1.0);
}

Pricing of plasma replicate.com

Run time and cost

This model costs approximately $0.0023 to run on Replicate, or 434 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia A40 (Large) GPU hardware . Predictions typically complete within 4 seconds. The predict time for this model varies significantly based on the inputs.

Runs of andreasjansson plasma on replicate.com

466
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About plasma replicate.com Model

plasma replicate.com

plasma replicate.com is an AI model on replicate.com that provides plasma's model effect (Generate plasma shader equations), which can be used instantly with this andreasjansson plasma model. replicate.com supports a free trial of the plasma model, and also provides paid use of the plasma. Support call plasma model through api, including Node.js, Python, http.

andreasjansson plasma online free

plasma replicate.com is an online trial and call api platform, which integrates plasma's modeling effects, including api services, and provides a free online trial of plasma, you can try plasma online for free by clicking the link below.

andreasjansson plasma online free url in replicate.com:

https://replicate.com/andreasjansson/plasma

plasma install

plasma is an open source model from GitHub that offers a free installation service, and any user can find plasma on GitHub to install. At the same time, replicate.com provides the effect of plasma install, users can directly use plasma installed effect in replicate.com for debugging and trial. It also supports api for free installation.

plasma install url in replicate.com:

https://replicate.com/andreasjansson/plasma

plasma install url in github:

https://github.com/andreasjansson/plasma

Url of plasma

Provider of plasma replicate.com

Other API from andreasjansson

replicate

Return CLIP features for the clip-vit-large-patch14 model

Total runs: 83.4M
Run Growth: 0
Growth Rate: 0.00%
Updated:March 06 2023
replicate

Answers questions about images

Total runs: 29.6M
Run Growth: 0
Growth Rate: 0.00%
Updated:November 21 2023
replicate

The DeepFloyd IF model has been initially released as a non-commercial research-only model. Please make sure you read and abide to the license before using it.

Total runs: 2.0M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 29 2023
replicate

Create tileable animations with seamless transitions

Total runs: 529.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 13 2023
replicate

Monster Labs' control_v1p_sd15_qrcode_monster ControlNet on top of SD 1.5

Total runs: 402.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Stable Diffusion fined-tuned on frames from Monkey Island 1 and 2

Total runs: 2.4K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 02 2022
replicate

Suite of models to evaluate the image quality of text-to-image models with respect to their input prompts.

Total runs: 1.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

FLUX.1 [dev] trained on the Replicate goo

Total runs: 1.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2024
replicate

An open-source model for program synthesis. Competitive with OpenAI Codex.

Total runs: 1.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:May 25 2022
replicate

Flux LoRA trained on generated images of random shapes

Total runs: 897
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024
replicate

Llama-2 13B with support for grammars and jsonschema

Total runs: 748
Run Growth: 0
Growth Rate: 0.00%
Updated:September 20 2023
replicate

Monkey Island database for Retrieval-augmented Diffusion model

Total runs: 622
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Implicit neural differentiable FM synthesizer

Total runs: 390
Run Growth: 0
Growth Rate: 0.00%
Updated:October 28 2022
replicate

Generate music based on the Monkey Island theme using the FIGARO model

Total runs: 305
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Image similarity metric that that compares a reference image to a set of images.

Total runs: 299
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

Generate "algorithmic symphony" one-liners with grammar-constrained CodeLlama

Total runs: 205
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Inpainting and video2video experiments with Wan 2.1

Total runs: 171
Run Growth: 0
Growth Rate: 0.00%
Updated:March 11 2025
replicate

Random rectangles, ellipses, lines, in random colors

Total runs: 87
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024