-
Notifications
You must be signed in to change notification settings - Fork 416
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
when I run IS_MY_FACE #11
Comments
I have this problem too,but what is wrong is in file "train_faces", after running that file you didn`t get the savepath,you could change the code like this: sorry ,i make a mistake here. |
I have this problem too?Have you solved this problem?Please reply me,thank you! |
I ... emmm,delete the “if ”sentence at the end of the code,for that avoid me from generating the path...but i dont know why.there should be some reason in that sentence but i cant understand.You can try this way,but its not a good way to solve the prolem. |
Excuse me, can you explain it clearly? Which "if" should I remove? |
remove line 163,
(i forget if this is the origin code,for i had changed it once) and you could change the print in 161 and 166 to `print(n*num_batch+i,loss,'loss') print(n*num_batch+i,acc,'acc') ` then,if the acc>0.98,you will get the path |
That's great, this is working, thank you! |
Thank you, but when I run this program if I use the other people's faces it will also terms out 'True' |
为什么按照楼上的方法,我没能得到解决 |
you don't have enough samples. Acc can't reach 0.95 |
File "G:/pycharm/untitled1/venv/is_my_face.py", line 145, in
saver.restore(sess, tf.train.latest_checkpoint('.'))
File "G:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\training\saver.py", line 1751, in restore
raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.
How to tackle this problem? Thanks!
The text was updated successfully, but these errors were encountered: