MCPcopy Create free account
hub / github.com/CiaraStrawberry/TemporalKit / batch_sd_run

Function batch_sd_run

scripts/stable_diffusion_processing.py:259–279  ·  view source on GitHub ↗
(y_paths, initial,count,seed,skip_first,fillindenoise,edgedenoise,smol_resolution,Forwards,target,diffuse)

Source from the content-addressed store, hash-verified

257
258
259def batch_sd_run (y_paths, initial,count,seed,skip_first,fillindenoise,edgedenoise,smol_resolution,Forwards,target,diffuse):
260 output_images = []
261 all_flow = []
262 output_images.append(initial)
263 last_mask = None
264 last_last_mask = None
265 allpaths = y_paths
266 for i in range(1, len(y_paths)):
267 current_frame = count + i
268 result,mask,flow = prepare_request(allpaths,i,output_images[i-1],smol_resolution,seed,last_mask,last_last_mask,fillindenoise,edgedenoise,target,diffuse,Forwards)
269 all_flow.append(flow)
270 output_images.append(result)
271 print(f"Written data for frame {current_frame}:")
272 last_last_mask = last_mask
273 last_mask = mask
274 if (skip_first == True):
275 output_images.pop(0)
276
277
278
279 return output_images,all_flow
280
281
282#output_images = []

Callers

nothing calls this directly

Calls 1

prepare_requestFunction · 0.85

Tested by

no test coverage detected