Skip to content
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

Cannot Load the Model #505

Open
lexylein opened this issue Dec 15, 2023 · 0 comments
Open

Cannot Load the Model #505

lexylein opened this issue Dec 15, 2023 · 0 comments

Comments

@lexylein
Copy link

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.

Screenshots
image

Desktop

  • OS: Windows 11 23H2 x64-based
  • .Net: 8.0.0
  • Version: 1.15.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant