(y_paths, initial,count,seed,skip_first,fillindenoise,edgedenoise,smol_resolution,Forwards,target,diffuse)
| 257 | |
| 258 | |
| 259 | def 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 = [] |
nothing calls this directly
no test coverage detected