Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

ComfyUI: preparing a graph reads the settings only for Person Removal's review

Adarsh62b6b7b03c20
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index ea963c4f..afcd4347 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -1206,7 +1206,8 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
},
sent,
accountOnInstall: !!tenantAccount() && !!(poolScope.getStore() || serverScope.getStore()),
- ownStudio: !ownGpu() && !computerScope() && !tenantAccount(),
+ // (Asked only for the graph it is about, H3 Person Removal's review: no other run reads the settings for it.)
+ ownStudio: endpointTemplate === H3_REMOVAL_WORKFLOW && !ownGpu() && !computerScope() && !tenantAccount(),
});
// What the composer used: the request without the files it dropped (an account's file it didn't send).
const used = out.dropped.length && request.extra ? { ...request, extra: Object.fromEntries(Object.entries(request.extra).filter(([k]) => !out.dropped.includes(k))) } : request;