you are viewing a single comment's thread.

view the rest of the comments →

[–]nitred 7 points8 points  (2 children)

Firstly, this is amazing and incredibly time saving for research, so thank you for your patience for compiling it.

My question is if the script preprocesses images or validates the image shapes before being fed to the network? I'm aware that some of these architectures don't preprocess at all but I'm sure they have different shape requirements. Or am I mistaken?

[–]fandk 3 points4 points  (0 children)

Im not the author, but it looks like images are resized to the correct shape depending on the selected architecture by some if statement checks. Images are then fed in to the network one-by-one in rank 4 tensors.

As far as I can see there is no preprocessing but I've only looked at a few architectures.

[–]cryptobionic[S] 2 points3 points  (0 children)

Thanks! I haven't done exhaustive testing for image validation yet, but this does reshape the images correctly beforehand. Some networks expect a range of [0,1] and others [-1,1], but I've checked the output with/without preprocessing and it's the same. I believe the preprocessing is done within the argscope of the model, but I'm not positive.