Commonly-used helper functions#
The following helper functions are commonly-used when preparing data and models for use with plenoptic.
Detach all parameters and buffers of model (in place). |
|
Set the seed. |
|
Load in images. |
|
Cast tensor to numpy in the most conservative way possible. |
|
Convert numpy array from float to 8 or 16 bit integer. |