Skip to content
Advertisement

Trying to extract patches from image and getting “UnimplementedError: Only support ksizes across space”

I was trying to split my image through 4 patches when I came through the following error:

UnimplementedError: Only support ksizes across space

JavaScript

Traceback:

JavaScript

Advertisement

Answer

After further research I was able to manage by changing from:

JavaScript

To :

JavaScript

And then reshape to obtain 3 channel images:

JavaScript
Advertisement