Skip to content

Commit 980201d

Browse files
committed
fix training data download issue. SciSharp#248
1 parent 4bf27bd commit 980201d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ Read the docs & book [The Definitive Guide to Tensorflow.NET](https://tensorflow
126126

127127
### More examples:
128128

129+
Run specific example in shell:
130+
131+
```cs
132+
dotnet TensorFlowNET.Examples.dll "Retrain Image Classifier"
133+
```
134+
135+
Example runner will download all the required files like training data and model pb files.
136+
129137
* [Hello World](test/TensorFlowNET.Examples/HelloWorld.cs)
130138
* [Basic Operations](test/TensorFlowNET.Examples/BasicOperations.cs)
131139
* [Linear Regression](test/TensorFlowNET.Examples/BasicModels/LinearRegression.cs)

test/TensorFlowNET.Examples/ImageProcess/RetrainImageClassifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public void PrepareData()
593593
{
594594
// get a set of images to teach the network about the new classes
595595
string fileName = "flower_photos.tgz";
596-
string url = $"http://download.tensorflow.org/models/{fileName}";
596+
string url = $"http://download.tensorflow.org/example_images/{fileName}";
597597
Web.Download(url, data_dir, fileName);
598598
Compress.ExtractTGZ(Path.Join(data_dir, fileName), data_dir);
599599

0 commit comments

Comments
 (0)