Skip to content

System.AccessViolationException when running the age training #206

@zevele

Description

@zevele

I've followed the instructions to perform age training, only to fail on the last step.
The last step ends after loading the test images, without any error:

D:\Projects\VS2019\FaceRecognitionDotNet-master\tools\AgeTraining>dotnet run -c Release -- train --dataset=AdienceDataset ^
More?                                --epoch=600 ^
More?                                --lr=0.001 ^
More?                                --min-lr=0.00001 ^
More?                                --min-batchsize=384 ^
More?                                --validation-interval=20
C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): war
ning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the fu
ture. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [D:\Projects\VS
2019\FaceRecognitionDotNet-master\tools\AgeTraining\AgeTraining.csproj]
C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): war
ning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the fu
ture. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [D:\Projects\VS
2019\FaceRecognitionDotNet-master\tools\AgeTraining\AgeTraining.csproj]
C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): war
ning NETSDK1138: The target framework 'netcoreapp2.0' is out of support and will not receive security updates in the fu
ture. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [D:\Projects\VS
2019\FaceRecognitionDotNet-master\tools\AgeTraining\AgeTraining.csproj]
            Dataset: AdienceDataset
              Epoch: 600
      Learning Rate: 0.001
  Min Learning Rate: 1E-05
     Min Batch Size: 384
Validation Interval: 20
           Use Mean: False

Start load train images
Load train images: 12188
Start load test images
Load test images: 3082

D:\Projects\VS2019\FaceRecognitionDotNet-master\tools\AgeTraining>

When I'm running the project inside VS in debug, a AccessViolationException is thrown on Line Program.cs:488
LossMulticlassLog.TrainOneStep(trainer, imageBatches[i], labelBatches[i]);
this is the first iteration (i=0).

Any ideas how I can solve this issue?

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions