| 133 | |
| 134 | |
| 135 | class PatchTypeSamplerCfgFunction(PatchTypeModel): |
| 136 | @classmethod |
| 137 | def _call(cls, patches, opts): |
| 138 | if not patches: |
| 139 | cond_pred, uncond_pred = opts["cond_denoised"], opts["uncond_denoised"] |
| 140 | return uncond_pred + (cond_pred - uncond_pred) * opts["cond_scale"] |
| 141 | return patches[0](opts) |
| 142 | |
| 143 | |
| 144 | PATCH_TYPES = { |
no outgoing calls
no test coverage detected