I’d probably use a torchvision imagenet or so example from the pytorch tutorials. You need to do the preprocessing like when using torchvision pretrained models (with x[‘mean’] and x[‘std’]). Then you feed it into x[‘model’].
You might have to transpose the axes (I don’t know) depending on the order the lua model uses (pytorch uses batch x channel x height x with.
Your image will have to have the right dimensions in order to feed into the last linear layer, the feature in Level 22 must have 3072 elements in total.
Best regards
Thomas