pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

Input range mismatch?

Open VicJones5678 opened this issue 5 years ago • 0 comments

Regarding: pretrainedmodels/models/xception.py

Normalizing an image as below will result in a range -1..1 (not 0..1 as specified). Please can you confirm if the input range should be -1..1 or 0..1?

Many thanks, -Vic.

"""... normalize = transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]) ..."""

pretrained_settings = { 'xception': { 'imagenet': { ... 'input_range': [0, 1], <-- ??? 'mean': [0.5, 0.5, 0.5], 'std': [0.5, 0.5, 0.5], ...

VicJones5678 avatar May 04 '20 15:05 VicJones5678