ishay2b / VanillaCNN

Implementation of the Vanilla CNN described in the paper: Yue Wu and Tal Hassner, "Facial Landmark Detection with Tweaked Convolutional Neural Networks", arXiv preprint arXiv:1511.04031, 12 Nov. 2015. See project page for more information about this project. http://www.openu.ac.il/home/hassner/projects/tcnn_landmarks/ Written by Ishay Tubi : ishay2b [at] gmail [dot] com https://www.l
188 stars 80 forks source link

how to run this code... #10

Closed gicheonkang closed 7 years ago

gicheonkang commented 7 years ago

hi I didn't understand your comment about running a code. I have a error like

Traceback (most recent call last): File "mainLoop.py", line 141, in dataRowsTrain_CSV = createDataRowsFromCSV(CSV_TRAIN, DataRow.DataRowFromNameBoxInterlaved, DATA_PATH) File "/home/chon/VanillaCNN/python/DataRow.py", line 40, in createDataRowsFromCSV with open(csvFilePath, 'r') as csvfile: IOError: [Errno 2] No such file or directory: '/home/chon/VanillaCNN/data/trainImageList.txt'

I think this is because data set is not downloaded.. what should I type the command? python mainLoop.py STEPS=[FULL_STEPS] <-- It isn't work

ishay2b commented 7 years ago

This should run full steps in mainLoop.py script: STEPS = AFW_STEPS + AFLW_STEPS

gicheonkang commented 7 years ago

Can you explain the difference between testSetPickle, testSetHD5 ??

I have a error when I include both of steps..

ishay2b commented 7 years ago

Hd5 is used by caffe. Pickle used by python mini scripts. What error do you get?

gicheonkang commented 7 years ago

I solved problem Reason is variable name in your code

AFLWSTEPS=['downloadALFW', ~~~~] ... if 'downloadAFLW' in STEPS: The AFLW, ALFW ^^

And I have another question. do you have VanillaCNN.caffemodel's source code? I want to read about specific structures of it.

ishay2b commented 7 years ago

A python notebook to run training is found here: https://github.com/ishay2b/VanillaCNN/blob/master/python/VanillaNoteBook.ipynb

The readme file describes important parts of the code. The original article is found here: http://www.openu.ac.il/home/hassner/projects/tcnn_landmarks/

gicheonkang commented 7 years ago

No, I don't know where the source code is. About model ( details of CNN Layers, Activation functions ... ) python notebook has a code of above them?

ishay2b commented 7 years ago

The python code is in the rep you are commenting on: https://github.com/ishay2b/VanillaCNN see the python folder. Best if you use the notebook.

The caffe prototxt deployment file: https://github.com/ishay2b/VanillaCNN/blob/master/ZOO/vanilla_deploy.prototxt