paint-brush
Steampunk Meets AI: A Complete Guide to Arcane Diffusionby@mikeyoung44
1,816 reads
1,816 reads

Steampunk Meets AI: A Complete Guide to Arcane Diffusion

by Mike YoungApril 4th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Arcane Diffusion model is an AI model designed to generate stunning images based on textual prompts. Trained on images from the TV show, this model is perfect for fans looking to create their own Arcane-inspired visuals. This model is currently ranked #50 on the database of popular AI models, with more than 98,000 runs.

People Mentioned

Mention Thumbnail
featured image - Steampunk Meets AI: A Complete Guide to Arcane Diffusion
Mike Young HackerNoon profile picture

A Beginner-Friendly Guide to Creating Stunning Images Using AI Inspired by the TV Show “Arcane”

Ever wished you could create images that capture the essence of the Arcane TV show? Well, the Arcane Diffusion model is here to turn your dreams into reality.


In this guide, we will explore how this AI-powered image generation model helps you generate captivating visuals in the iconic Arcane style.


This model is currently ranked #50 on Replicate Codex (a database of popular AI models), with more than 98,000 runs.


Ever wonder what Harry Potter would look like in the world of Arcane? We’ll see how to use AI to produce images just like this one.


In this guide, we’ll discover how to use Node.js to interact with the model via the Replicate API and see how to use Replicate Codex to find similar models and decide which one we like.


We’ll also learn more about how the model works, what inputs and outputs it expects, and discuss some of its limitations. Let’s begin.

About Arcane

Arcane is an adult animated steampunk action-adventure television series created by Christian Linke and Alex Yee for Netflix.


Produced by the French animation studio Fortiche under Riot Games’ supervision, Arcane is set in the League of Legends fictional universe and primarily focuses on sisters Vi and Jinx.


First released in November 2021, the series has garnered a massive following, leading to the production of a second season.

About the Arcane Diffusion Model

The Arcane Diffusion model is an AI model designed to generate stunning images based on textual prompts. Trained on images from the Arcane TV show, this model is perfect for fans looking to create their own Arcane-inspired visuals.


The model was created by tstramer. who has a ton of other models from popular culture, like waifu-diffusionelden-ring-diffusion, and cyberpunk-anime-diffusion.

Understanding the Inputs and Outputs of the Arcane Diffusion Model

Inputs

The Arcane Diffusion model takes several inputs to generate images:


  • prompt (string): The main input prompt describing the scene you want to create. For example, "a photo of an astronaut riding a horse on Mars."


  • negative_prompt (string): Specify things you don't want to see in the output.


  • width (integer): Width of the output image. Maximum size is 1024x768 or 768x1024 due to memory limits.


  • height (integer): Height of the output image. Maximum size is 1024x768 or 768x1024 due to memory limits.


    prompt_strength (number): Prompt strength when using an initial image. 1.0 corresponds to the full destruction of information in the initial image.


  • num_outputs (integer): Number of images to output.


  • num_inference_steps (integer): Number of denoising steps.


  • guidance_scale (number): Scale for classifier-free guidance.


  • scheduler (string): Choose a scheduler, with options including DDIM, K_EULER, DPMSolverMultistep, K_EULER_ANCESTRAL, PNDM, and KLMS.


  • seed (integer): Random seed. Leave blank to randomize the seed.

Outputs

The output of the Arcane Diffusion model is an array of image URLs generated according to the input parameters provided. Here’s the output format:

{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}

A Step-by-Step Guide to Using the Arcane Diffusion Model

If you’re not up for coding, you can interact directly with this model’s “demo” on Replicate via their UI. Use this link to interact with the interface, and try it out! This is a great way to play with the model’s parameters and get some quick feedback and validation.



If you’re more technical and looking to build a cool tool on top of this model, you can follow these simple steps to generate Arcane-inspired images using the Arcane Diffusion model on Replicate.


Be sure to create a Replicate account first! You’ll need your API key for this project.

Step 1: Install the Replicate Node.js Client

Install the Replicate Node.js client by running:

npm install replicate

Step 2: Set Up Your API Token

Copy your API token, and authenticate by setting it as an environment variable:

export REPLICATE_API_TOKEN=[token]

Step 3: Run the Model

Run the model using the following code:

import Replicate from "replicate";

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

const output = await replicate.run(
  "tstramer/arcane-diffusion:4cbb3f91f9ba049151efb8922fdecc6703d419ea682b87ff94c5876addabfb19",
   {
      input: {
         prompt: "a photo of an astronaut riding a horse on mars"
      }
   }
);


You can also specify a webhook URL to be called when the prediction is complete. For example:

const prediction = await replicate.predictions.create({
  version: "4cbb3f91f9ba049151efb8922fdecc6703d419ea682b87ff94c5876addabfb19",
  input: {
    prompt: "a photo of an astronaut riding a horse on mars, arcane style"
  },
  webhook: "https://example.com/your-webhook",
  webhook_events_filter: ["completed"]
});


To learn more, check out the Node.js library documentationImportant note! You should include the token “arcane style” at the end of your prompt for the best results — otherwise, the model will not match the intended art style.


In our example, we can pass a text prompt of: “a magical princess with golden hair, arcane style” to get an output that looks like the image below.

Example Arcane Diffusion AI model output

Example output file using the sample prompt information.


Here are the other settings used to produce the example image — you can pass all of these into the model as part of the JSON input object:


  • width: 512
  • height: 512
  • scheduler: K-LMS
  • num_outputs: 1
  • guidance_scale: 7.5
  • prompt_strength: 0.8
  • num_inference_steps: 50

Taking It Further — Finding Other Image Generation Models With Replicate Codex

Replicate Codex is a fantastic resource for discovering AI models catering to various creative needs, including image generation, image-to-image conversion, and more.


It’s a fully searchable, filterable, tagged database of all the models on Replicate, allowing you to compare models, sort by price, or explore by creator.


It’s free, and it also has a digest email alerting you when new models come out so you can try them.


If you’re interested in finding similar models to Arcane Diffusion…

Step 1: Visit Replicate Codex

Head over to Replicate Codex to begin your search for similar models.

Step 2: Use the Search Bar

Use the search bar at the top of the page to search for models with specific keywords, such as “image generation,” “text-to-image,” or “arcane.” This will show you a list of models related to your search query. In this case, I searched by “tstramer,” who is the creator of this model.

Step 3: Filter or Sort the Results

On the left side of the search results page, you’ll find several filters that can help you narrow down the list of models. You can filter and sort models by type (Image-to-Image, Text-to-Image, etc.), cost, popularity, or even specific creators.


By applying these filters, you can find the models that best suit your specific needs and preferences. For example, if you’re looking for an image generation model that’s the most popular or has the best reviews, you can just search and then sort by the relevant metric.

Viewing additional models by the same creator on Replicate Codex

In my case, I sorted the results by Runs — Descending to find tstramer’s most popular models. If I’m interested in creating more stylized cyberpunk art while working with a similar model from the same creator, now I can!

Conclusion

In this guide, we explored the Arcane Diffusion model, an AI-powered solution to generate stunning images inspired by the popular TV show Arcane.


We provided a step-by-step guide on how to use the model to create images and showcased the various input parameters that can be adjusted to achieve different results.


We also discussed how to leverage the search and filter features in Replicate Codex to find similar models and compare their outputs, allowing us to broaden our horizons in the world of AI-powered image generation.


I hope this guide has inspired you to explore the creative possibilities of AI and bring your imagination to life. Thank you for reading, and have fun!


Subscribe or follow me on Twitter for more content like this.