18 lines
411 B
Markdown
18 lines
411 B
Markdown
# Pt From Image Transpose
|
|
Casts an image tensor to a PyTorch tensor and transposes it from (H, W, C) to (C, H, W). For rank-4 inputs, the batch axis remains unchanged.
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| image | Image |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| Tensor |
|
|
|
|
<HR>
|
|
Category: PyTorch wrapper - Image processing
|
|
|
|
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|