Instructions to use aa-studio/aa_studio_data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aa-studio/aa_studio_data with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("aa-studio/aa_studio_data", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| const fs = require("fs"); | |
| const path = require("path"); | |
| const { nop } = require("../utils/nopProxy"); | |
| function forEachKey(cb) { | |
| for (const k of [ | |
| "LiteGraph", | |
| "LGraph", | |
| "LLink", | |
| "LGraphNode", | |
| "LGraphGroup", | |
| "DragAndScale", | |
| "LGraphCanvas", | |
| "ContextMenu", | |
| ]) { | |
| cb(k); | |
| } | |
| } | |
| export function setup(ctx) { | |
| const lg = fs.readFileSync(path.resolve("../web/lib/litegraph.core.js"), "utf-8"); | |
| const globalTemp = {}; | |
| (function (console) { | |
| eval(lg); | |
| }).call(globalTemp, nop); | |
| forEachKey((k) => (ctx[k] = globalTemp[k])); | |
| require(path.resolve("../web/lib/litegraph.extensions.js")); | |
| } | |
| export function teardown(ctx) { | |
| forEachKey((k) => delete ctx[k]); | |
| // Clear document after each run | |
| document.getElementsByTagName("html")[0].innerHTML = ""; | |
| } | |