CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

C#: The method TextFormatMinibatchSource does not support folders which have brackets

Open sdg002 opened this issue 8 years ago • 1 comments

Hello Team,

I was attempting to get the MNIST sample up and running. The code compiled without problems, however at runtime I was receiving the error: "Input file ... is not open"

The folder where I had reproduced the GitHub content had a structure resembling: c:\blah\MachineLearnings\CNTK-master(full)\Tests\EndToEndTests\Image\Data and the problem disappeared when I moved the folder Tests\EndToEndTests\Image\Data to another location. I am, suspecting that the brackets were an issue.

string fileTrain = Path.Combine(ImageDataFolder, "Train_cntk_text.txt"); var minibatchSource = MinibatchSource.TextFormatMinibatchSource ( fileTrain, streamConfigurations, MinibatchSource.InfinitelyRepeat);

Just thought I should let you know. It is fine by me if you are not going to support certain characters - but I would have expected a little more intuitive System.IO.DirectoryNotFoundException or a FileNotFoundException.

sdg002 avatar Oct 01 '18 14:10 sdg002

This is an issue!

On very small files, the file sometimes gets loaded, large files the file is not Loaded.

The MinibatchSource.TextFormatMinibatchSource is not waiting for the File to be written to the Output Path.

C# has the same problem, through the API.

SOLUTION: Read the file from a Static Location and use the Full Path.

GuntaButya avatar Apr 16 '19 04:04 GuntaButya