-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cannot delete image file passsed to PredictionEngine for Image Classification after disposing the engine #4585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are there any updates on this issue? |
I ll take a look, thx |
@giuseppe-terrasi I am not able to repro this with the latest code from master branch. I checked that image file is loaded within using{ .... } statement before actual prediction happens (in \machinelearning\src\Microsoft.ML.ImageAnalytics\ImageLoader.cs : TryLoadDataIntoBuffer(..) method). Could you try your code with the latest ML.NET from master branch. |
Are there any updates on this issue? Due to it I have a lot of temporary images used by this code that I must delete manually after restarting the process. I can give more information if needed. Thanks. |
This is not a solution to this issue but I faced the similar issue and ended up using ITransformer.Transform as an workaround for the prediction. Using PredictionEngine is cleaner but ITransfomer does not seem to lock files. |
@ganik Still no updates? |
@ganik My customer also encounters this issue. Any update on this ? |
@ganik No updates on this ? |
@giuseppe-terrasi @konabuta Hi, sorry for delay and thank you for repro solution. I was able to find the rootcause in machinelearning\src\Microsoft.ML.ImageAnalytics\ImageLoader.cs, line 238: |
System information
Issue
Source code / logs
The text was updated successfully, but these errors were encountered: