1
0
Fork 0

update tile size key to match API

This commit is contained in:
Sean Sube 2023-09-13 22:40:37 -05:00
parent 4959c01ddb
commit 41b38f910a
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import { doesExist } from '@apextoaster/js-utils'; import { doesExist } from '@apextoaster/js-utils';
import { HighresParams, ModelParams, Txt2ImgParams, UpscaleParams } from '../types/params.js'; import { HighresParams, ModelParams, Txt2ImgParams, UpscaleParams } from '../types/params.js';
import { ChainPipeline } from '../types/chain.js'; import { ChainPipeline, ChainStageParams } from '../types/chain.js';
export interface PipelineVariable { export interface PipelineVariable {
parameter: 'prompt' | 'cfg' | 'seed' | 'steps' | 'eta' | 'scheduler' | 'token'; parameter: 'prompt' | 'cfg' | 'seed' | 'steps' | 'eta' | 'scheduler' | 'token';
@ -49,9 +49,8 @@ export function makeTxt2ImgGridPipeline(grid: PipelineGrid, model: ModelParams,
stages: [], stages: [],
}; };
const tiles = { const tiles: ChainStageParams = {
// eslint-disable-next-line camelcase tiles: 8192,
tile_size: 8192,
}; };
let i = 0; let i = 0;

View File

@ -1,7 +1,7 @@
import { ImageSize, Img2ImgParams, ModelParams, Txt2ImgParams } from './params.js'; import { ImageSize, Img2ImgParams, ModelParams, Txt2ImgParams } from './params.js';
export interface ChainStageParams { export interface ChainStageParams {
tile_size: number; tiles: number;
} }
export interface Txt2ImgStage { export interface Txt2ImgStage {