e-sensing / sits

Satellite image time series in R
https://e-sensing.github.io/sitsbook/
GNU General Public License v2.0
467 stars 76 forks source link

Improve handling of torch models in CUDA #1084

Closed OldLipe closed 6 months ago

OldLipe commented 7 months ago

Describe the requested improvement Provide a strategy to ensuring best memory usage for torch models in CUDA.

Associated sits API function sits_classify()

Additional context Torch allocates a fixed amount of memory in CUDA which depends on model size. For this reason, SITS needs to find out the size of each model to allocate maximum amount of workers in CUDA.