lgarithm / crystalnet

crystalnet -- a mini core AI library (being refactored, see https://github.com/lgarithm/stdnn-ops)
MIT License
16 stars 3 forks source link

idempotent resize operator #72

Open lgarithm opened 6 years ago

lgarithm commented 6 years ago
input :: filename -> T[3, h, w] 

should be idempotent.

image file will be resized to [h,w] after read. If file size is already [h, w], we need to make sure we don't re-resize it, which would introduce re-sampling of the image.

i,e.

input(filename2) == input(save(filename2, input(filename1)))

should hold.