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

运行is_my_face.py文件时 #32

Open
AmyWin opened this issue Apr 16, 2019 · 7 comments
Open

运行is_my_face.py文件时 #32

AmyWin opened this issue Apr 16, 2019 · 7 comments

Comments

@AmyWin
Copy link

AmyWin commented Apr 16, 2019

楼主,您好!
当我运行运行is_my_face.py文件时,出现File "D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\training\saver.py", line 1264, in restore
raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.
请问我应该如何解决这个问题,是什么原因导致了错误了呢。期待尽快得到你的回复。谢谢

@Liyilang1
Copy link

一样又这个。。很难受

@seathiefwang
Copy link
Owner

saver.restore(sess, tf.train.latest_checkpoint('.'))
将这句代码中的'.' 修改成你的模型所在的位置。
例如:saver.restore(sess, tf.train.latest_checkpoint( "your path"))

@JunjieMiao
Copy link

模型所在的位置在哪里呢

@wusonga
Copy link

wusonga commented Nov 29, 2019

没有生成模型,源码只有正确率大于0.98才会生成模型,改小一点

@lanzj23
Copy link

lanzj23 commented May 18, 2020

Can't load save_path when it is None. 问题,首先要生成模型,然后找到模型所在的位置如:“C:\User\Administrator” 改成: saver.restore(sess, tf.train.latest_checkpoint(r'C:\User\Administrator'))

@lanzj23
Copy link

lanzj23 commented May 18, 2020

模型所在的位置在哪里呢

train_face运行成功后,在电脑硬盘中,搜索“train_faces.model”的位置即可

@1107dingjiaxin
Copy link

电脑里面找不到这个“train_faces.model”文件,可能是什么原因呢?

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

7 participants