Home
last modified time | relevance | path

Searched refs:input_mean (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/examples/label_image/
Dlabel_image.py41 input_mean=0, argument
60 normalized = tf.divide(tf.subtract(resized, [input_mean]), [input_std])
82 input_mean = 0 variable
109 if args.input_mean:
110 input_mean = args.input_mean variable
123 input_mean=input_mean,
Dmain.cc116 const int input_width, const float input_mean, in ReadTensorFromImageFile() argument
169 Div(root.WithOpName(output_name), Sub(root, resized, {input_mean}), in ReadTensorFromImageFile()
288 float input_mean = 0; in main() local
301 Flag("input_mean", &input_mean, "scale pixel values to this mean"), in main()
337 ReadTensorFromImageFile(image_path, input_height, input_width, input_mean, in main()
/external/tensorflow/tensorflow/contrib/pi_examples/label_image/
Dlabel_image.cc136 const int wanted_width, const float input_mean, in ReadTensorFromImageFile() argument
191 const float top_left((in_top_left_pixel[c] - input_mean) / input_std); in ReadTensorFromImageFile()
192 const float top_right((in_top_right_pixel[c] - input_mean) / input_std); in ReadTensorFromImageFile()
193 const float bottom_left((in_bottom_left_pixel[c] - input_mean) / in ReadTensorFromImageFile()
195 const float bottom_right((in_bottom_right_pixel[c] - input_mean) / in ReadTensorFromImageFile()
317 int32 input_mean = 128; in main() local
330 Flag("input_mean", &input_mean, "scale pixel values to this mean"), in main()
366 ReadTensorFromImageFile(image_path, input_height, input_width, input_mean, in main()
/external/tensorflow/tensorflow/contrib/pi_examples/camera/
Dcamera.cc333 const int wanted_width, const float input_mean, in TensorFromFrame() argument
380 const float top_left((in_top_left_pixel[c] - input_mean) / input_std); in TensorFromFrame()
381 const float top_right((in_top_right_pixel[c] - input_mean) / input_std); in TensorFromFrame()
382 const float bottom_left((in_bottom_left_pixel[c] - input_mean) / in TensorFromFrame()
384 const float bottom_right((in_bottom_right_pixel[c] - input_mean) / in TensorFromFrame()
407 int32 input_mean = 128; in main() local
420 Flag("input_mean", &input_mean, "transformed mean of input pixels"), in main()
493 input_width, input_mean, input_std, &resized_tensors); in main()
/external/tensorflow/tensorflow/examples/multibox_detector/
Dmain.cc75 const int input_width, const float input_mean, in ReadTensorFromImageFile() argument
118 Div(root.WithOpName(output_name), Sub(root, resized, {input_mean}), in ReadTensorFromImageFile()
342 int32 input_mean = 128; in main() local
361 Flag("input_mean", &input_mean, "scale pixel values to this mean"), in main()
405 ReadTensorFromImageFile(image_path, input_height, input_width, input_mean, in main()
/external/tensorflow/tensorflow/tools/gcs_test/python/
Dgcs_smoke.py39 def create_examples(num_examples, input_mean): argument
42 inputs = np.random.randn(num_examples, 1) + input_mean
43 target = inputs - input_mean
/external/tensorflow/tensorflow/lite/examples/label_image/
Dlabel_image.h31 float input_mean = 127.5f; member
Dbitmap_helpers_impl.h87 out[i] = (output[i] - s->input_mean) / s->input_std; in resize()
Dlabel_image.cc306 s.input_mean = strtod(optarg, nullptr); in Main()
/external/tensorflow/tensorflow/lite/examples/python/
Dlabel_image.py71 input_data = (np.float32(input_data) - args.input_mean) / args.input_std
/external/tensorflow/tensorflow/lite/examples/ios/simple/
DRunModelViewController.mm160 const float input_mean = 127.5f;
174 out_pixel[c] = (in_pixel[c] - input_mean) / input_std;
/external/tensorflow/tensorflow/examples/ios/simple/
DRunModelViewController.mm176 const float input_mean = 117.0f;
196 out_pixel[c] = (in_pixel[c] - input_mean) / input_std;
/external/tensorflow/tensorflow/examples/ios/benchmark/
DBenchmarkViewController.mm227 const float input_mean = 117.0f;
246 out_pixel[c] = (in_pixel[c] - input_mean) / input_std;
/external/tensorflow/tensorflow/examples/ios/camera/
DCameraExampleViewController.mm41 const float input_mean = 117.0f;
308 out_pixel[c] = (in_pixel[c] - input_mean) / input_std;
/external/tensorflow/tensorflow/lite/examples/ios/camera/
DCameraExampleViewController.mm55 const float input_mean = 127.5f;
132 out_pixel[c] = (input_pixel[c] - input_mean) / input_std;