mvitez / thnets

Basic library that can run networks created with Torch
Other
173 stars 23 forks source link

ask for some details about the model directory #21

Closed canneltigrou closed 5 years ago

canneltigrou commented 5 years ago

Hi, I would like to use your project in order to read a Torch model on an embedded system. But I don't understand the two files that are required into the model directory.

I would like to use Openface (https://cmusatyalab.github.io/openface/) : they use a lua script to open the model, but I have only one file : the model named nn4.small2.v1.t7

concerning your two files :

thanks for any answer,

mvitez commented 5 years ago

Hi,

stat.t7 is used to put the input image into the right range. It basically just subtracts mean from the input and divides it by std; mean and std are specified for each color plane. If you don't provide that file, mean will be 0 and std 1, leaving your input as is.

Best regards, Marko.

canneltigrou commented 5 years ago

thank you very much :-)

Best regards,