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

CnnInYourOwnData:after call Train() ,in Test() function will interrupt #61

Open
zj2050 opened this issue Nov 29, 2021 · 0 comments
Open

Comments

@zj2050
Copy link

zj2050 commented Nov 29, 2021

In vs2019 debug mode,after CnnInYourOwnData call Train() and running finished,it can generated all ckpt files
but then call Test() function : (loss_test, accuracy_test) = sess.run((loss, accuracy), (x, x_test), (y, y_test)); will auto interrupted without any information after some time;

if deleted next two lines
Test();
TestDataOutput();

and direct call function
FreezeModel();

    public override string FreezeModel()
    {
        return tf.train.freeze_graph(Config.Name + @"\\MODEL", @".\\CNN_Best", new[]
        {
            "Input/X", 
            "Input/Y", 
            "Train/Prediction/predictions",
            "Train/Prediction/prob"
        });
    }

will generate pb file, but the pb file is more less ckpt files,ckpt file more than 786M, and pb file is only 262M,using netron open pb and ckpt it show very defferent

bbcb-1b55aad29374b9e1189c6f5003e79b8c

thanks

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