Skip to content

Mantpy 1.1.1

Choose a tag to compare

@moeghaf moeghaf released this 09 Nov 13:06
88f3d11

Shape options for the built-in patch encoder.

  • PatchEncoder and encode_patches accept conv_blocks, conv_width, pool_size, pool_type and conv_activation, so the number of convolution blocks, their width, average or max pooling before the readout, and ReLU or GELU can be set without writing a custom model. The defaults keep the previous architecture, so existing results are unchanged.
  • With pool_size set, PatchEncoder.fit uses deterministic="warn" by default, because adaptive pooling has no deterministic CUDA backward pass.
  • Encoders saved with non-default shape options need Mantpy 1.1.1 or newer to load.

Validated on Python 3.11 and 3.14, with a successful package build.

Install:

pip install mantpy==1.1.1