Skip to content

/app/DnnImageModels/ResNetPrepOnnx/ResNetPreprocess.onnx does not exists #7557

@wa926talent

Description

@wa926talent

System Information (please complete the following information):

  • OS & Version: [ Ubuntu 20.04.6 LTS]
  • ML.NET Version: [Microsoft.ML 4.0.2、Microsoft.ML.AutoML 0.22.2]
  • .NET Version: [e.g. .NET 9.0]

Describe the bug
The application runs normally in a Docker container on CentOS 7.4 but fails with an error when executed in a Docker container on Ubuntu 20.04.6.

Expected behavior
System.AggregateException: One or more errors occurred. (Model file /app/DnnImageModels/ResNetPrepOnnx/ResNetPreprocess.onnx does not exists.) ---> System.IO.IOException: Model file /app/DnnImageModels/ResNetPrepOnnx/ResNetPreprocess.onnx does not exists.
at Microsoft.ML.Runtime.Contracts.CheckIO(IExceptionContext ctx, Boolean f, String msg, Object[] args)
at Microsoft.ML.Transforms.Onnx.OnnxTransformer..ctor(IHostEnvironment env, Options options, Byte[] modelBytes)
at Microsoft.ML.Transforms.Onnx.OnnxTransformer..ctor(IHostEnvironment env, String[] outputColumnNames, String[] inputColumnNames, String modelFile, Nullable1 gpuDeviceId, Boolean fallbackToCpu, IDictionary2 shapeDictionary, Int32 recursionLimit, Nullable1 interOpNumThreads, Nullable1 intraOpNumThreads)
at Microsoft.ML.Transforms.Onnx.OnnxScoringEstimator..ctor(IHostEnvironment env, String[] outputColumnNames, String[] inputColumnNames, String modelFile, Nullable1 gpuDeviceId, Boolean fallbackToCpu, IDictionary2 shapeDictionary, Int32 recursionLimit, Nullable1 interOpNumThreads, Nullable1 intraOpNumThreads)
at Microsoft.ML.ResNet18Extension.ResNet18(DnnImageModelSelector dnnModelContext, IHostEnvironment env, String outputColumnName, String inputColumnName, String modelDir)
at Microsoft.ML.ResNet18Extension.ResNet18(DnnImageModelSelector dnnModelContext, IHostEnvironment env, String outputColumnName, String inputColumnName)
at Microsoft.ML.AutoML.CodeGen.DnnFeaturizerImage.<>c__DisplayClass0_0.b__1(DnnImageFeaturizerInput m)
at Microsoft.ML.Transforms.Onnx.DnnImageFeaturizerEstimator..ctor(IHostEnvironment env, String outputColumnName, Func2 modelFactory, String inputColumnName) at Microsoft.ML.OnnxCatalog.DnnFeaturizeImage(TransformsCatalog catalog, String outputColumnName, Func2 modelFactory, String inputColumnName)
at Microsoft.ML.AutoML.CodeGen.DnnFeaturizerImage.BuildFromOption(MLContext context, DnnFeaturizerImageOption param)
at Microsoft.ML.AutoML.SweepablePipeline.BuildFromOption(MLContext context, Parameter parameter)
at Microsoft.ML.AutoML.RegressionTrialRunner.RunAsync(TrialSettings settings, CancellationToken ct)
at Microsoft.ML.AutoML.AutoMLExperiment.RunAsync(CancellationToken ct)

--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.get_Result() at Microsoft.ML.AutoML.AutoMLExperiment.Run() at Microsoft.ML.AutoML.RegressionExperiment.Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator1 preFeaturizer, IProgress1 progressHandler) at Microsoft.ML.AutoML.RegressionExperiment.Execute(IDataView trainData, String labelColumnName, String samplingKeyColumn, IEstimator1 preFeaturizer, IProgress`1 progressHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions