Skip to content

CAREINFERENCESESSION CLASS: _get_patches() function will break on inputs with dims (patch_dim, !patch_dim, C) #8

@AlexSath

Description

@AlexSath

_get_patches() function will extract patches from the input array, with patch dimensions that match the input dimensions of the ONNX model.

There are 4 possible cases for dimension inputs:

  1. Either or both Input array dimensions are less than the patch dimension --> will raise an error (GOOD)
  2. Both input array dimensions match the patch dimension --> will return the unaltered array (GOOD)
  3. One input array dimension matches the patch dimension, the other is larger --> will raise an error (BAD)
  4. Both input array dimensions are larger than the patch dimension --> will properly extract patches (GOOD)

The behavior for case 3 needs to be fixed.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions