HDSetting less words

This commit is contained in:
Qing
2022-07-19 22:35:26 +08:00
parent adf8d4c0ec
commit 6e164c4915

View File

@@ -41,17 +41,25 @@ function HDSettingBlock() {
const renderOriginalOptionDesc = () => { const renderOriginalOptionDesc = () => {
return ( return (
<div> <div>
Use the original resolution of the picture, suitable for picture size Use original picture, suitable for picture size below 2K. Try{' '}
below 2K. Try{' '}
<div <div
tabIndex={0} tabIndex={0}
role="button" role="button"
className="inline-tip" className="inline-tip"
onClick={() => onStrategyChange(HDStrategy.RESIZE)} onClick={() => onStrategyChange(HDStrategy.RESIZE)}
> >
Resize Strategy Resize
</div>
{' or '}
<div
tabIndex={0}
role="button"
className="inline-tip"
onClick={() => onStrategyChange(HDStrategy.CROP)}
>
Crop
</div>{' '} </div>{' '}
if you do not get good results on high resolution images. if you didn&apos;t get good results or have GPU memory issue.
</div> </div>
) )
} }
@@ -60,8 +68,8 @@ function HDSettingBlock() {
return ( return (
<> <>
<div> <div>
Resize the longer side of the image to a specific size(keep ratio), Resize the longer side of the image to a specific size, then do
then do inpainting on the resized image. inpainting on the resized image.
</div> </div>
<NumberInputSetting <NumberInputSetting
title="Size limit" title="Size limit"
@@ -76,11 +84,7 @@ function HDSettingBlock() {
const renderCropOptionDesc = () => { const renderCropOptionDesc = () => {
return ( return (
<> <>
<div> <div>Crop masking area from the original image to do inpainting.</div>
Crop masking area from the original image to do inpainting, and paste
the result back. Mainly for performance and memory reasons on high
resolution image.
</div>
<NumberInputSetting <NumberInputSetting
title="Trigger size" title="Trigger size"
value={`${hdSettings.hdStrategyCropTrigerSize}`} value={`${hdSettings.hdStrategyCropTrigerSize}`}