| 51 | |
| 52 | @comfy_node(description="Image to CPU") |
| 53 | class ImageToCPU: |
| 54 | @classmethod |
| 55 | def INPUT_TYPES(cls): |
| 56 | return { |
| 57 | "required": { |
| 58 | "image": ("IMAGE",), |
| 59 | }, |
| 60 | } |
| 61 | |
| 62 | RETURN_TYPES = ("IMAGE",) |
| 63 | FUNCTION = "run" |
| 64 | CATEGORY = "utility" |
| 65 | |
| 66 | def run(self, image): |
| 67 | return (image.cpu(),) |
nothing calls this directly
no outgoing calls
no test coverage detected