mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): misc tidy
This commit is contained in:
parent
068bbe3a39
commit
010f63a50d
@ -13,11 +13,9 @@ const useGetImageByNameSelector = createSelector(
|
|||||||
|
|
||||||
const useGetImageByNameAndType = () => {
|
const useGetImageByNameAndType = () => {
|
||||||
const { allResults, allUploads } = useAppSelector(useGetImageByNameSelector);
|
const { allResults, allUploads } = useAppSelector(useGetImageByNameSelector);
|
||||||
|
|
||||||
return (name: string, type: ImageType) => {
|
return (name: string, type: ImageType) => {
|
||||||
if (type === 'results') {
|
if (type === 'results') {
|
||||||
const resultImagesResult = allResults[name];
|
const resultImagesResult = allResults[name];
|
||||||
|
|
||||||
if (resultImagesResult) {
|
if (resultImagesResult) {
|
||||||
return resultImagesResult;
|
return resultImagesResult;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { v4 as uuidv4 } from 'uuid';
|
|
||||||
import { RootState } from 'app/store/store';
|
import { RootState } from 'app/store/store';
|
||||||
import {
|
import {
|
||||||
CompelInvocation,
|
CompelInvocation,
|
||||||
|
@ -94,6 +94,6 @@ export const buildTextToImageGraph = (state: RootState): Graph => {
|
|||||||
|
|
||||||
// Create and add the noise nodes
|
// Create and add the noise nodes
|
||||||
graph = addNoiseNodes(graph, TEXT_TO_LATENTS, state);
|
graph = addNoiseNodes(graph, TEXT_TO_LATENTS, state);
|
||||||
console.log(graph);
|
|
||||||
return graph;
|
return graph;
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ import {
|
|||||||
buildOutputFieldTemplates,
|
buildOutputFieldTemplates,
|
||||||
} from './fieldTemplateBuilders';
|
} from './fieldTemplateBuilders';
|
||||||
|
|
||||||
const invocationDenylist = ['Graph', 'LoadImage'];
|
const invocationDenylist = ['Graph'];
|
||||||
|
|
||||||
export const parseSchema = (openAPI: OpenAPIV3.Document) => {
|
export const parseSchema = (openAPI: OpenAPIV3.Document) => {
|
||||||
// filter out non-invocation schemas, plus some tricky invocations for now
|
// filter out non-invocation schemas, plus some tricky invocations for now
|
||||||
|
Loading…
Reference in New Issue
Block a user