You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just bumped my head into this issue for a while during debugging. It would be great if the implicit kernel_size could be made an explicit part of the API of PointwiseAvgPoolAntialiased2D and others:
def __init__(self,
in_type: FieldType,
sigma: float,
stride: Union[int, Tuple[int, int]],
# kernel_size: Union[int, Tuple[int, int]] = None, #<- this provides only rigid control of this class
padding: Union[int, Tuple[int, int]] = None,
#dilation: Union[int, Tuple[int, int]] = 1,
):
I suggest to make kernel_size part of the API again and fill filter with 0 for example. This would give downstream users the freedom to play more with the output of the underlying conv operation.
The text was updated successfully, but these errors were encountered:
I am not completely convinced by this solution, to be honest.
First, at the moment, the kernel_size is chosen to fit best the antialiasing filter.
I feel like allowing the user to set a different kernel_size would make this module less reliable, since a bad choice of kernel_size will break the antialiasing filter without the user noticing.
Second, the PointwiseMaxPoolAntialiased2D module already has a kernel_size argument which, however, has a different meaning (it refers to the size of the window used to compute the max).
I fear having a kernel_size argument in the average pooling would be confusing.
I will probably use a different naming for this kernel_size and raise a warning if it is too small. I'll try to implement this in the next days, but feel free to open a PR if you already did something like that
Just bumped my head into this issue for a while during debugging. It would be great if the implicit
kernel_size
could be made an explicit part of the API ofPointwiseAvgPoolAntialiased2D
and others:escnn/escnn/nn/modules/pooling/pointwise_avg.py
Line 132 in 8795704
I suggest to make
kernel_size
part of the API again and fillfilter
with0
for example. This would give downstream users the freedom to play more with the output of the underlying conv operation.The text was updated successfully, but these errors were encountered: