fix(heal): restore sharp photorealistic textures and structural lines via 1:1 scale exemplar synthesis
This commit is contained in:
@@ -1088,10 +1088,7 @@ async function applyHealToBase(
|
||||
const srcH = srcBottom - srcTop;
|
||||
|
||||
if (srcW >= 8 && srcH >= 8) {
|
||||
const { w: mw, h: mh } = inpaintCropSize(
|
||||
(srcW / width) * INPAINT_REF_LONG,
|
||||
(srcH / height) * INPAINT_REF_LONG
|
||||
);
|
||||
const { w: mw, h: mh } = inpaintCropSize(srcW, srcH);
|
||||
const cropSurface = tempOwn(createSurface(mw, mh));
|
||||
if (cropSurface) {
|
||||
cropSurface.getCanvas().drawImageRect(
|
||||
|
||||
Reference in New Issue
Block a user