(tensor_image)
| 760 | |
| 761 | |
| 762 | def tensor_to_numpy_image_batch(tensor_image): |
| 763 | byte_image = (((tensor_image+1)/2)*255).clamp(0, 255).byte() |
| 764 | numpy_image = byte_image.permute(0, 2, 3, 1).cpu().numpy() |
| 765 | return numpy_image |
| 766 | |
| 767 | # Phase 4: evaluation of intervention |
| 768 |
nothing calls this directly
no outgoing calls
no test coverage detected