(sd_model, text)
| 6 | |
| 7 | |
| 8 | def forge_clip_encode(sd_model, text): |
| 9 | if text is None: |
| 10 | return None |
| 11 | |
| 12 | cond = sd_model.get_learned_conditioning([text]) |
| 13 | return cond.to(memory_management.get_torch_device()) |
| 14 | |
| 15 | |
| 16 | def rgba2rgbfp32(x): |
no outgoing calls
no test coverage detected