parameters: (self, in_, data)
return_statement: return decaf_in
docstring: Invert Caffe formatting; see preprocess().
docstring_summary: Invert Caffe formatting; see preprocess().
docstring_tokens: Invert Caffe formatting ; see preprocess () .
function: def deprocess(self, in_, data):
          """
          Invert Caffe formatting; see preprocess().
          """
          self.__check_input(in_)
          decaf_in = data.copy().squeeze()
          transpose = self.transpose.get(in_)
          channel_swap = self.channel_swap.get(in_)
          raw_scale = self.raw_scale.get(in_)
          mean = self.mean.get(in_)
          input_scale = self.input_scale.get(in_)
          if input_scale is not None:
              decaf_in /= input_scale
          if mean is not None:
              decaf_in += mean
          if raw_scale is not None:
              decaf_in /= raw_scale
          if channel_swap is not None:
              decaf_in = decaf_in[channel_swap, :, :]
          if transpose is not None:
              decaf_in = decaf_in.transpose([transpose[t] for t in transpose])
          return decaf_in
function_tokens: def deprocess ( self , in_ , data ) : self . __check_input ( in_ ) decaf_in = data . copy ( ) . squeeze ( ) transpose = self . transpose . get ( in_ ) channel_swap = self . channel_swap . get ( in_ ) raw_scale = self . raw_scale . get ( in_ ) mean = self . mean . get ( in_ ) input_scale = self . input_scale . get ( in_ ) if input_scale is not None : decaf_in /= input_scale if mean is not None : decaf_in += mean if raw_scale is not None : decaf_in /= raw_scale if channel_swap is not None : decaf_in = decaf_in [ channel_swap , : , : ] if transpose is not None : decaf_in = decaf_in . transpose ( [ transpose [ t ] for t in transpose ] ) return decaf_in