mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-30 14:24:27 +02:00
face correctiona and scaling passing thru properly
This commit is contained in:
parent
616167e08c
commit
2dda683aa6
@ -29,6 +29,7 @@ function SettingsList() {
|
|||||||
const toggleUseFaceCorrection = useImageCreate(
|
const toggleUseFaceCorrection = useImageCreate(
|
||||||
(state) => state.toggleUseFaceCorrection
|
(state) => state.toggleUseFaceCorrection
|
||||||
);
|
);
|
||||||
|
|
||||||
const isUsingFaceCorrection = useImageCreate((state) =>
|
const isUsingFaceCorrection = useImageCreate((state) =>
|
||||||
state.isUsingFaceCorrection()
|
state.isUsingFaceCorrection()
|
||||||
);
|
);
|
||||||
|
@ -50,10 +50,12 @@ export default function DisplayPanel() {
|
|||||||
})
|
})
|
||||||
.flat()
|
.flat()
|
||||||
.reverse();
|
.reverse();
|
||||||
setCompletedImages(temp);
|
debugger;
|
||||||
|
setCompletedImages(temp);
|
||||||
} else {
|
} else {
|
||||||
setCompletedImages([]);
|
setCompletedImages([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, [setCompletedImages, queryClient, completedIds]);
|
}, [setCompletedImages, queryClient, completedIds]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -113,7 +113,7 @@ export const useImageCreate = create<ImageCreateState>(
|
|||||||
use_cpu: false,
|
use_cpu: false,
|
||||||
use_full_precision: true,
|
use_full_precision: true,
|
||||||
save_to_disk_path: "null",
|
save_to_disk_path: "null",
|
||||||
use_face_correction: null,
|
use_face_correction: 'GFPGANv1.3',
|
||||||
use_upscale: "RealESRGAN_x4plus",
|
use_upscale: "RealESRGAN_x4plus",
|
||||||
show_only_filtered_image: false,
|
show_only_filtered_image: false,
|
||||||
} as ImageRequest,
|
} as ImageRequest,
|
||||||
@ -184,6 +184,8 @@ export const useImageCreate = create<ImageCreateState>(
|
|||||||
if (!state.uiOptions.isCheckUseFaceCorrection) {
|
if (!state.uiOptions.isCheckUseFaceCorrection) {
|
||||||
request.use_face_correction = null;
|
request.use_face_correction = null;
|
||||||
}
|
}
|
||||||
|
debugger;
|
||||||
|
|
||||||
// if we arent using upscaling clear the upscaling
|
// if we arent using upscaling clear the upscaling
|
||||||
if (!state.uiOptions.isCheckedUseUpscaling) {
|
if (!state.uiOptions.isCheckedUseUpscaling) {
|
||||||
request.use_upscale = null;
|
request.use_upscale = null;
|
||||||
@ -259,10 +261,10 @@ export const useImageCreate = create<ImageCreateState>(
|
|||||||
state.use_face_correction = state.uiOptions.isCheckUseFaceCorrection
|
state.use_face_correction = state.uiOptions.isCheckUseFaceCorrection
|
||||||
? "GFPGANv1.3"
|
? "GFPGANv1.3"
|
||||||
: null;
|
: null;
|
||||||
localStorage.setItem(
|
// localStorage.setItem(
|
||||||
"ui:isCheckUseFaceCorrection",
|
// "ui:isCheckUseFaceCorrection",
|
||||||
state.uiOptions.isCheckUseFaceCorrection
|
// state.uiOptions.isCheckUseFaceCorrection
|
||||||
);
|
// );
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user