This repository was archived by the owner on Aug 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 571
Cannot Load the Model #505
Copy link
Copy link
Open
Description
Code
string imgModelPath = System.IO.Path.Combine(assemblyDirectory, "models\\img\\" + "saved_model.pb");
// Load Image AI
await Task.Run(() => ImgAI.StartAI(imgModelPath));
public static async Task StartAI(string modelPath)
{
try
{
// Load the pre-trained model
graph = new TFGraph();
graph.Import(File.ReadAllBytes(modelPath));
}
catch (Exception ex)
{
// Handle the exception (log, display a message, etc.)
MessageBox.Show($"Exception: {ex.Message}");
}
}
used Model
https://www.kaggle.com/models/deepmind/biggan/frameworks/TensorFlow1/variations/128/versions/2
Expected behavior
I expect that the model will load but i get an error insted.
Desktop
- OS: Windows 11 23H2 x64-based
- .Net: 8.0.0
- Version: 1.15.1
Metadata
Metadata
Assignees
Labels
No labels
