Skip to content

IMG_MEAN needs to be changed for CityScapes? #23

Open
@aasharma90

Description

@aasharma90

Hi @speedinghzl ,

I see the following has been used for CityScapes (during both training and evaluation)-
IMG_MEAN = np.array((104.00698793,116.66876762,122.67891434), dtype=np.float32)

I did some googling and found out the stats actually correspond to the ImageNet dataset? So, I was simply wondering whether for training on CityScapes, we need to change them accordingly? Using a simple check, I see that the above stats for CityScapes training dataset are [73.1584, 82.9089, 72.3924], which seem to differ quite a bit from the above.

[EDIT, 24/01/2019]: Just recently found out that the stats for ImageNet shown above are actually in BGR format. So, for CityScapes, it should be [72.3924, 82.9089, 73.1584] and not [73.1584, 82.9089, 72.3924]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions