dotnet / dotnet/machinelearning-modelbuilder

Object detection-Local & Image classification-Azure: Console App is generated failed with error "Object reference not set to an instance of an object." when using the model cloned from GitHub.

Open
#2,881 0 comments 0 reactions 0 assignees View on GitHub
Priority:2 Reported by: Test
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 17.18.2.2416101 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.9.3)
.Net: 6.0

**Describe the bug**
- On which step of the process did you run into an issue:
Console App is generated failed with error "Object reference not set to an instance of an object." when using the model cloned from GitHub.

**TestMatrix**
https://testpass.blob.core.windows.net/test-pass-data/weather.zip

**To Reproduce**
Steps to reproduce the behavior:
1. Select Create a new project from the Visual Studio start window.
2. Choose the C# Console App (.NET Core) project template.
3. Add model builder by right click on the project.
4. Select "Object detection-Local or Image classification-Azure" scenario.
5. On the Data page, choose the data source to complete the training.
6. Save All Files, then create a new repository and push to GitHub.
7. **Check out to different location on the same computer**.
8. Open the cloned Model Builder and go to Consume page.
9. Click "Add to solution" button to generate Console App project, pop-up the error "Object reference not set to an instance of an object.".

**Expected behavior**
Console App can be generated successfully.

**Screenshot**
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/99375895/b4ff9329-55f3-4162-9464-909a39e1dc3b)

**Additional context**
1. The error is not repro when generated the Web API project.
2. After you save, close then re-open the mbconfig file, the bug would be not repro.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.