dotnet / machinelearning

ML.NET is an open source and cross-platform machine learning framework for .NET.
https://dot.net/ml
MIT License
9.05k stars 1.89k forks source link

PredictionEngine.Predict locks file even after disposing and going out of context #4738

Closed venkateshkrc closed 4 years ago

venkateshkrc commented 4 years ago

System information

Issue

Creating PredictionEngine and using Predict on an Image data locks the image file. Disposing the prediction engine has no effect as well.

~~ImageLoadingEstimator locks the image file and does not release the lock even after going out of context.~~

harishsk commented 4 years ago

Can you please share more details? Some sample code and perhaps some sample data would be very useful.

antoniovs1029 commented 4 years ago

Perhaps the same problem as #4585 ?

venkateshkrc commented 4 years ago

Yes, it is the same. Sorry. Will close this issue.

For the time being worked around using ITransformer.Transform which does not seem to lock files.