You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Triggered by the Update Torch button, to run a torch update for one install folder. */
50
+
updateTorch(button,path,backendId){
51
+
if(!confirm(`Are you sure you want to update PyTorch for the ComfyUI install at:\n${path}\n\nThis is experimental! It will take a while, download several gigabytes of data, and might even break things!`)){
/// <summary>The current known version of PyTorch.</summary>
91
+
publicstaticstringCurrentTorchVersion="2.12.1";
92
+
90
93
/// <summary>List of known required python packages, as pairs of strings: Item1 is the folder name within python packages to look for, Item2 is the pip install command.</summary>
if(!Program.Backends.AllBackends.TryGetValue(backendId,outBackendHandler.BackendDatabackend)||backend.AbstractBackendis not ComfyUISelfStartBackendtarget)
311
+
{
312
+
returnnew(){["error"]=$"Invalid backend ID {backendId}"};
313
+
}
314
+
stringpath=target.ComfyPathBase;
315
+
ComfyUISelfStartBackend[]backends=[.. Program.Backends.EnumerateT2IBackends.Select(d =>d.AbstractBackendasComfyUISelfStartBackend).Where(b =>bis not null&&b.ComfyPathBase==path)];
316
+
Logs.Info($"User {session.User.UserID} requested a PyTorch update for ComfyUI install at '{path}' (affecting {backends.Length} backend(s))...");
317
+
Logs.Info($"[Torch Update] Shutting down {backends.Length} backend(s) that use this install...");
0 commit comments