You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the demo.py script and its related files but I don't see any image normalization while prediction. However in train.py I could see image normalization using albumentations.
Is there a specific reason why normalization has been removed from the inference?
The text was updated successfully, but these errors were encountered:
Hi. Maybe too late but I have an answer for you.
In demo.py you can see the definition of the spoof_model:
if args.spf_model.endswith('pth.tar'):
if not args.config:
raise ValueError('You should pass config file to work with a Pytorch model')
config = utils.read_py_config(args.config)
spoof_model = utils.build_model(config, args, strict=True, mode='eval')
spoof_model = TorchCNN(spoof_model, args.spf_model, config, device=device)
else:
assert args.spf_model.endswith('.xml')
spoof_model = VectorCNN(args.spf_model)
I checked the demo.py script and its related files but I don't see any image normalization while prediction. However in train.py I could see image normalization using albumentations.
Is there a specific reason why normalization has been removed from the inference?
The text was updated successfully, but these errors were encountered: