From 980201d671fc331be43c698789c2ee3f77d29c4c Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 25 May 2019 10:24:13 -0500 Subject: [PATCH] fix training data download issue. #248 --- README.md | 8 ++++++++ .../ImageProcess/RetrainImageClassifier.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2f72d75..545cea13 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,14 @@ Read the docs & book [The Definitive Guide to Tensorflow.NET](https://tensorflow ### More examples: +Run specific example in shell: + +```cs +dotnet TensorFlowNET.Examples.dll "Retrain Image Classifier" +``` + +Example runner will download all the required files like training data and model pb files. + * [Hello World](test/TensorFlowNET.Examples/HelloWorld.cs) * [Basic Operations](test/TensorFlowNET.Examples/BasicOperations.cs) * [Linear Regression](test/TensorFlowNET.Examples/BasicModels/LinearRegression.cs) diff --git a/test/TensorFlowNET.Examples/ImageProcess/RetrainImageClassifier.cs b/test/TensorFlowNET.Examples/ImageProcess/RetrainImageClassifier.cs index 6cb7b0d2..2b2b5364 100644 --- a/test/TensorFlowNET.Examples/ImageProcess/RetrainImageClassifier.cs +++ b/test/TensorFlowNET.Examples/ImageProcess/RetrainImageClassifier.cs @@ -593,7 +593,7 @@ namespace TensorFlowNET.Examples.ImageProcess { // get a set of images to teach the network about the new classes string fileName = "flower_photos.tgz"; - string url = $"http://download.tensorflow.org/models/{fileName}"; + string url = $"http://download.tensorflow.org/example_images/{fileName}"; Web.Download(url, data_dir, fileName); Compress.ExtractTGZ(Path.Join(data_dir, fileName), data_dir);