Giter Site home page Giter Site logo

prompt_loader's Introduction

Prompt Loader

Deno Test deno compatibility vr scripts

Usage

Node.js

Install

Add dependency

npm install ai-art-club/prompt_loader#latest

or

yarn add ai-art-club/prompt_loader#latest

Load prompt

// このインポートキモイのであとでどうにかすると思う
import { loadPrompt } from "prompt_loader/npm"

const file: File = new File([], "your-image-file")

const prompt = await loadPrompt(file)

console.log(prompt)

Output example

{
    "model": "NovelAI",
    "source": "Stable Diffusion 81274D13",
    "negative": "nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
    "noise": 0.667,
    "positive": "masterpiece, best quality, 1girl",
    "samplingAlgorithm": "k_euler_ancestral",
    "scale": 11,
    "seed": 4017753600,
    "size": { 
        "width": 768,
         "height": 512
    },
    "height": 512,
    "width": 768,
    "steps": 28,
    "strength": 0.69
}

Deno

import { loadPrompt } from "https://raw.githubusercontent.com/ai-art-club/prompt_loader/0.0.7/mod.ts"

TODO

  • Support Stable Diffusion Web UI type image
  • Prompt converter

prompt_loader's People

Contributors

p1atdev avatar fkunn1326 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.