mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): remove original l2i node in HRF graph
This commit is contained in:
parent
e38d275e20
commit
060038a8c0
@ -314,6 +314,10 @@ export const addHrfToGraph = (state: RootState, graph: NonNullableGraph): void =
|
|||||||
);
|
);
|
||||||
copyConnectionsToDenoiseLatentsHrf(graph);
|
copyConnectionsToDenoiseLatentsHrf(graph);
|
||||||
|
|
||||||
|
// The original l2i node is unnecessary now, remove it
|
||||||
|
graph.edges = graph.edges.filter((edge) => edge.destination.node_id !== LATENTS_TO_IMAGE);
|
||||||
|
delete graph.nodes[LATENTS_TO_IMAGE];
|
||||||
|
|
||||||
graph.nodes[LATENTS_TO_IMAGE_HRF_HR] = {
|
graph.nodes[LATENTS_TO_IMAGE_HRF_HR] = {
|
||||||
type: 'l2i',
|
type: 'l2i',
|
||||||
id: LATENTS_TO_IMAGE_HRF_HR,
|
id: LATENTS_TO_IMAGE_HRF_HR,
|
||||||
|
Loading…
Reference in New Issue
Block a user