Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
import { ClapEntity, ClapSegment } from "@aitube/clap" | |
import { SettingsRenderingState } from "./settings/rendering" | |
export enum ComputeProvider { | |
NONE = "NONE", | |
CUSTOM = "CUSTOM", | |
HUGGINGFACE = "HUGGINGFACE", // https://huggingface.co | |
COMFY_HUGGINGFACE = "COMFY_HUGGINGFACE", // https://huggingface.co | |
REPLICATE = "REPLICATE", // https://replicate.com | |
COMFY_REPLICATE = "COMFY_REPLICATE", // https://replicate.com | |
COMFY_COMFYICU = "COMFY_COMFYICU", // https://comfy.icu | |
ELEVENLABS = "ELEVENLABS", // https://elevenlabs.io | |
OPENAI = "OPENAI", // https://openai.com | |
STABILITYAI = "STABILITYAI", // https://stability.ai | |
GROQ = "GROQ", // https://groq.com | |
FALAI = "FALAI", // https://fal.ai | |
MODELSLAB = "MODELSLAB", // https://modelslab.com | |
} | |
export enum ComfyIcuAccelerator { | |
T4 = "T4", | |
L4 = "L4", | |
A10 = "A10", | |
A100_40GB = "A100_40GB", | |
A100_80GB = "A100_80GB", | |
H100 = "H100" | |
} | |
export type RenderRequest = { | |
settings: SettingsRenderingState | |
// the reference segment to render (eg. storyboard or video) | |
segment: ClapSegment | |
// the slice to use for rendering | |
segments: ClapSegment[] | |
entities: Record<string, ClapEntity> | |
} | |
export type ComfyParameter = | |
| string | |
| number | |
| boolean | |
| Array< string | number | boolean> | |
export type ComfyNode = { | |
inputs: Record<string, ComfyParameter> | |
/* | |
inputs: { | |
"seed": number | |
"steps": number | |
"cfg": number | |
"sampler_name":string | |
"scheduler": string | |
"denoise": number | |
"model": any[] | |
"positive": any[] | |
"negative": any[] | |
"latent_image": any[] | |
} | |
*/ | |
class_type: string | |
_meta: { | |
title: string | |
} | |
} |