Closed rnunziata closed 6 years ago
Just as the author said .
You can feed any image into the network as follows:
Load the image into an RGB numpy tensor Rescale the intensity values to [0, 1] Make sure that the channel ordering is RGB and not BGR (opencv standard) Reshape and dimshuffle the tensor to [1, 3, H, W] where H and W are the image height (rows) and width (cols), respectively. Feed the tensor into the network.
can you supply a code block showing how process the inputs to call val_fn. I will close this since this is out of scope here. But if you feel like you could a code example would be helpful.
Trying to evaluation with my own image....not sure how to set the inputs correctly. Can you offer some correction.
ERROR: