Giter VIP home page Giter VIP logo

Comments (9)

GrinHHH avatar GrinHHH commented on July 3, 2024

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:
saver.save(sess, './train_faces.model', global_step=n*num_batch+i)
sys.exit(0)
print ('saver done')
and you will see if u have generate the path.
if you find a way to solve(or to say generate the path),plz tell me ,thanks!

sorry ,i make a mistake here.
you should put the "print"before the function exit,or you won`t see the result either

from facerecognition-tensorflow.

KalElSuper avatar KalElSuper commented on July 3, 2024

I have this problem too?Have you solved this problem?Please reply me,thank you!

from facerecognition-tensorflow.

GrinHHH avatar GrinHHH commented on July 3, 2024

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.

from facerecognition-tensorflow.

KalElSuper avatar KalElSuper commented on July 3, 2024

Excuse me, can you explain it clearly? Which "if" should I remove?

from facerecognition-tensorflow.

GrinHHH avatar GrinHHH commented on July 3, 2024

remove line 163,

if (n*num_batch+i) % 100 == 0

(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

from facerecognition-tensorflow.

KalElSuper avatar KalElSuper commented on July 3, 2024

That's great, this is working, thank you!

from facerecognition-tensorflow.

yangyangwill avatar yangyangwill commented on July 3, 2024

Thank you, but when I run this program if I use the other people's faces it will also terms out 'True'
Do you know why? Thank you so much!

from facerecognition-tensorflow.

hbkcy avatar hbkcy commented on July 3, 2024

为什么按照楼上的方法,我没能得到解决

from facerecognition-tensorflow.

zzzzjinxiang avatar zzzzjinxiang commented on July 3, 2024

you don't have enough samples. Acc can't reach 0.95

from facerecognition-tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.