Skip to content Skip to sidebar Skip to footer

Reproduce Tensorflow Hub Module Output With Tensorflow Slim

I am trying to reproduce the output from a Tensorflow Hub module that is based on a Tensorflow Slim checkpoint, using the Tensorflow Slim modules. However, I can't seem to get the

Solution 1:

Those Hub modules scale their inputs from the canonical range [0,1] to what the respective slim checkpoint expects from the preprocessing it was trained with (typically [-1,+1] for "Inception-style" preprocessing). Passing them the same inputs can explain a large difference. Even after linear rescaling to fix that, a difference up to compounded numerical error wouldn't surprise me (given the many degrees of freedom inside TF), but major discrepancies might indicate a bug.


Post a Comment for "Reproduce Tensorflow Hub Module Output With Tensorflow Slim"