mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes missing threshold and perlin parameters in metadata viewer
This commit is contained in:
parent
df03927ec6
commit
500bde5b0e
@ -33,6 +33,8 @@ import {
|
|||||||
setWidth,
|
setWidth,
|
||||||
setInitialImage,
|
setInitialImage,
|
||||||
setShouldShowImageDetails,
|
setShouldShowImageDetails,
|
||||||
|
setThreshold,
|
||||||
|
setPerlin,
|
||||||
} from 'features/options/store/optionsSlice';
|
} from 'features/options/store/optionsSlice';
|
||||||
import promptToString from 'common/util/promptToString';
|
import promptToString from 'common/util/promptToString';
|
||||||
import { seedWeightsToString } from 'common/util/seedWeightPairs';
|
import { seedWeightsToString } from 'common/util/seedWeightPairs';
|
||||||
@ -132,24 +134,26 @@ const ImageMetadataViewer = memo(
|
|||||||
const dreamPrompt = image?.dreamPrompt;
|
const dreamPrompt = image?.dreamPrompt;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
type,
|
|
||||||
postprocessing,
|
|
||||||
sampler,
|
|
||||||
prompt,
|
|
||||||
seed,
|
|
||||||
variations,
|
|
||||||
steps,
|
|
||||||
cfg_scale,
|
cfg_scale,
|
||||||
seamless,
|
|
||||||
hires_fix,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
strength,
|
|
||||||
fit,
|
fit,
|
||||||
|
height,
|
||||||
|
hires_fix,
|
||||||
init_image_path,
|
init_image_path,
|
||||||
mask_image_path,
|
mask_image_path,
|
||||||
orig_path,
|
orig_path,
|
||||||
|
perlin,
|
||||||
|
postprocessing,
|
||||||
|
prompt,
|
||||||
|
sampler,
|
||||||
scale,
|
scale,
|
||||||
|
seamless,
|
||||||
|
seed,
|
||||||
|
steps,
|
||||||
|
strength,
|
||||||
|
threshold,
|
||||||
|
type,
|
||||||
|
variations,
|
||||||
|
width,
|
||||||
} = metadata;
|
} = metadata;
|
||||||
|
|
||||||
const metadataJSON = JSON.stringify(image.metadata, null, 2);
|
const metadataJSON = JSON.stringify(image.metadata, null, 2);
|
||||||
@ -214,6 +218,20 @@ const ImageMetadataViewer = memo(
|
|||||||
onClick={() => dispatch(setSeed(seed))}
|
onClick={() => dispatch(setSeed(seed))}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{threshold !== undefined && (
|
||||||
|
<MetadataItem
|
||||||
|
label="Noise Threshold"
|
||||||
|
value={threshold}
|
||||||
|
onClick={() => dispatch(setThreshold(threshold))}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{perlin !== undefined && (
|
||||||
|
<MetadataItem
|
||||||
|
label="Perlin Noise"
|
||||||
|
value={perlin}
|
||||||
|
onClick={() => dispatch(setPerlin(perlin))}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{sampler && (
|
{sampler && (
|
||||||
<MetadataItem
|
<MetadataItem
|
||||||
label="Sampler"
|
label="Sampler"
|
||||||
|
Loading…
Reference in New Issue
Block a user