mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): temp disable image caching while testing
This commit is contained in:
parent
a953dc1dbd
commit
b8abff65a1
@ -337,12 +337,12 @@ export class KonvaNodeManager {
|
|||||||
const region = this.stateApi.getRegionsState().entities.find((entity) => entity.id === id);
|
const region = this.stateApi.getRegionsState().entities.find((entity) => entity.id === id);
|
||||||
assert(region, `Region entity state with id ${id} not found`);
|
assert(region, `Region entity state with id ${id} not found`);
|
||||||
|
|
||||||
if (region.imageCache) {
|
// if (region.imageCache) {
|
||||||
const imageDTO = await this.util.getImageDTO(region.imageCache.name);
|
// const imageDTO = await this.util.getImageDTO(region.imageCache.name);
|
||||||
if (imageDTO) {
|
// if (imageDTO) {
|
||||||
return imageDTO;
|
// return imageDTO;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
const layerClone = this.util.getMaskLayerClone({ id });
|
const layerClone = this.util.getMaskLayerClone({ id });
|
||||||
const blob = await konvaNodeToBlob(layerClone, bbox);
|
const blob = await konvaNodeToBlob(layerClone, bbox);
|
||||||
@ -362,12 +362,12 @@ export class KonvaNodeManager {
|
|||||||
const { bbox, preview = false } = arg;
|
const { bbox, preview = false } = arg;
|
||||||
const inpaintMask = this.stateApi.getInpaintMaskState();
|
const inpaintMask = this.stateApi.getInpaintMaskState();
|
||||||
|
|
||||||
if (inpaintMask.imageCache) {
|
// if (inpaintMask.imageCache) {
|
||||||
const imageDTO = await this.util.getImageDTO(inpaintMask.imageCache.name);
|
// const imageDTO = await this.util.getImageDTO(inpaintMask.imageCache.name);
|
||||||
if (imageDTO) {
|
// if (imageDTO) {
|
||||||
return imageDTO;
|
// return imageDTO;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
const layerClone = this.util.getMaskLayerClone({ id: inpaintMask.id });
|
const layerClone = this.util.getMaskLayerClone({ id: inpaintMask.id });
|
||||||
const blob = await konvaNodeToBlob(layerClone, bbox);
|
const blob = await konvaNodeToBlob(layerClone, bbox);
|
||||||
@ -386,12 +386,13 @@ export class KonvaNodeManager {
|
|||||||
async _getImageSourceImage(arg: { bbox?: Rect; preview?: boolean }): Promise<ImageDTO> {
|
async _getImageSourceImage(arg: { bbox?: Rect; preview?: boolean }): Promise<ImageDTO> {
|
||||||
const { bbox, preview = false } = arg;
|
const { bbox, preview = false } = arg;
|
||||||
const { imageCache } = this.stateApi.getLayersState();
|
const { imageCache } = this.stateApi.getLayersState();
|
||||||
if (imageCache) {
|
|
||||||
const imageDTO = await this.util.getImageDTO(imageCache.name);
|
// if (imageCache) {
|
||||||
if (imageDTO) {
|
// const imageDTO = await this.util.getImageDTO(imageCache.name);
|
||||||
return imageDTO;
|
// if (imageDTO) {
|
||||||
}
|
// return imageDTO;
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
const stageClone = this.util.getCompositeLayerStageClone();
|
const stageClone = this.util.getCompositeLayerStageClone();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user