utils
decollate(data)
Decollate a list of tensors into a list of values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
list
|
A list of batch tensors. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
A list of values from the input tensors. |
Raises:
| Type | Description |
|---|---|
AssertionError
|
If the input is not a list of tensors. |
Source code in fmcib/callbacks/utils.py
handle_image(image)
Handle image according to specific requirements.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
tensor
|
An image tensor. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
tensor |
The processed image tensor, based on the input conditions. |