dotnet / machinelearning-samples

Samples for ML.NET, an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
4.47k stars 2.68k forks source link

Splitter/consolidator worker encountered exception while consuming source data #1026

Closed luanmacek closed 5 months ago

luanmacek commented 5 months ago

ITransformer trainedModel = pipeline.Fit(_trainDataView);

Splitter/consolidator worker encountered exception while consuming source data

ex.InnerException.Message Access to the path 'C:\300\Ok' is denied.

at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at Microsoft.ML.Data.ImageLoadingTransformer.Mapper.TryLoadDataIntoBuffer(String path, VBuffer1& imgData) at Microsoft.ML.Data.ImageLoadingTransformer.Mapper.<>c__DisplayClass5_0.<MakeGetterVectorDataViewByteType>b__0(VBuffer1& dst) at Microsoft.ML.Data.DataViewUtils.Splitter.InPipe.Impl`1.Fill() at Microsoft.ML.Data.DataViewUtils.Splitter.<>c__DisplayClass7_1.b__2()

luanmacek commented 5 months ago

For some reason it wants me to create file named Ok