Skip to content

Mean and scaling, C++ Caffe vs Python wrapper #525

Closed
@Denominator

Description

@Denominator

Hi!

I noticed in caffe.proto (around line 209):

// For data pre-processing, we can do simple scaling and subtracting the
// data mean, if provided. Note that the mean subtraction is always carried
// out before scaling.
optional float scale = 2 [default = 1];

But then in python file pycaffe.py (around line 266):

if input_scale:
    caffe_in *= input_scale

and few lines later:

if mean is not None:
    caffe_in -= mean

Is that right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions