hammerlab / flowdec

TensorFlow Deconvolution for Microscopy Data
Apache License 2.0
89 stars 26 forks source link

How does padding 'none' work? #44

Open scott-vision opened 7 months ago

scott-vision commented 7 months ago

Hi,

I have picked up some code that someone else was using that is no longer with us.

He is setting pad_mode to 'none' and pad_min to [16,16,16]

Does this not pad at all or pad with zeroes.

Thanks, Scott

eric-czech commented 7 months ago

Does this not pad at all or pad with zeroes.

It would pad according to pad_fill, but only for 16 pixels in each dimension. The default pad_fill mode is REFLECT, which is discussed some more in https://www.tensorflow.org/api_docs/python/tf/pad.