Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.54 KB

README.md

File metadata and controls

72 lines (51 loc) · 1.54 KB

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