Comments (14)
I tried to screw around with the source code, understood I have no hope before my deadline in making sense of C/C++, which I never studied before, then just used the default settings and hoped for the best.
from openface.
Are you referring to "https://github.com/TadasBaltrusaitis/OpenFace/wiki/Command-line-arguments#documentation"?
Finally you might need to look into the implementation of the different samples/GUIs, like "https://github.com/TadasBaltrusaitis/OpenFace/blob/master/exe/FaceLandmarkImg/FaceLandmarkImg.cpp".
from openface.
Here:
https://github.com/TadasBaltrusaitis/OpenFace/wiki/Command-line-arguments#common-parameters-for-all
Only one "-mloc" and it's all about landmark detection. GUI also has different options for face detection.
I don't know C/C++, so that gives me nothing.
Also, I like this GUI just fine. I just need to replicate all the parameters through command line - first I use the GUI to find the most useful combination of settings, then I batch process all the videos in my dataset with it.
from openface.
Can you maybe rephrase your question @Allexxann ?
Which GUI executable are you talking about? We might want to check the code together to find all supported command-line arguments.
Are you asking about undocumented/outdated command-line arguments or do you want options from within the GUI only to be exposed as command-line parameters?
from openface.
I simply use OpenFaceOffline.exe as a GUI executable, but from what I understand it simply passes the same calls internally.
Since I work with single-face videos, I'll need FeatureExtraction for command line input, I guess.
Hm, I honestly thought these options were already exposed, just not documented on that page.
Okay, more specific.
I want to know command line arguments
- to specify Face Detector - OpenCV(Haar)/Dlib(HOG-SVM)/OpenFace
- to specify Landmark Detector - CLM/CLNF/CE-CLM - I guess that's what -mloc is, but better safe than sorry
So that I could use through command line the mode I chose in GUI.
Everything else is mostly covered and is matched between documentation and GUI.
from openface.
From what I can see in the files under "https://github.com/TadasBaltrusaitis/OpenFace/tree/master/gui/OpenFaceOffline" it looks like this GUI executable doesn't handle any command-line options, when I interpret the C# code correctly...
Everything seems hard-wired and only changable at runtime via the GUI...
from openface.
OpenFaceOffline lacks console input, as it should, since it's a GUI integrator.
And FeatureExtraction lacks the GUI and operates through command line or being called by OpenFaceOffline.
That much I could tell you from the start.
Also I already checked FeatureExtraction (just a full-text regex search), and couldn't find any of the parameters listed in documentation, meaning that they're either handled elsewhere or encoded in a non-obvious way (I still know nothing about C++ and how it handles input).
You could check OpenFaceOffline for command line outputs/external calls, or variables set by choosing the options in GUI.
from openface.
FeatureExtraction
forwards the command-line arguments to various sub-modules, spread all over the repo:
LandmarkDetector::FaceModelParameters det_parameters(arguments);
FaceAnalysis::FaceAnalyserParameters face_analysis_params(arguments);
Utilities::Visualizer visualizer(arguments);
Utilities::RecorderOpenFaceParameters recording_params(arguments,... ...
Utilities::RecorderOpenFace open_face_rec(sequence_reader.name, recording_params, arguments);
The GUI OpenFaceOffline
, however, supports all sub-modules, which then can be used via GUI buttons.
Hmm, still not sure I get your intention...
After finetuning the results with one of the GUI-tools you want to use one of the other executable, e.g. "https://github.com/TadasBaltrusaitis/OpenFace/tree/master/exe/FeatureExtraction", to do batching.
But you are missing command-line options for e.g. "FeatureExtraction.exe" or don't know their exact name?
from openface.
Basically your last statement.
I'm sure the option for specifying face detector is already here, but the name is absent in the doc.
I just need the name of the parameter and the possible values for it.
It would be nice to confirm that "-mloc" is the option for landmark detector, though, just to be sure.
from openface.
The latest version of "https://github.com/TadasBaltrusaitis/OpenFace/tree/master/gui/OpenFaceOffline" on the master branch doesn't consider any command line arguments, as far as I can see.
from openface.
"After finetuning the results with one of the GUI-tools you want to use one of the other executable, e.g. "https://github.com/TadasBaltrusaitis/OpenFace/tree/master/exe/FeatureExtraction", to do batching.
But you are missing command-line options for e.g. "FeatureExtraction.exe" or don't know their exact name?"
I need arguments to pass to FeatureExtraction, which it passes further, but I don't know their exact name.
OpenFaceOffline is generating these arguments, not receiving them. At least, that's what it looks like from the user point of view.
from openface.
Were you able to achieve what you were looking for, have you added your needed command line arguments and use them instead of the hard-coded parameters in this sample?
from openface.
First, the answer to my original question is not documented, but I hired a real c++ coder for a little detective work.
Supplying -fdloc "classifiers/haarcascade_frontalface_alt.xml" to FeatureExtraction forces the program to use Haar. There are several different xml's here, so you can choose whichever suits you.
Supplying -wild makes it use MTCNN.
If -wild is used, but it cannot find the file "model/mtcnn_detector/MTCNN_detector.txt", it will default to HOG instead.
Second, bmarkus, you're a fucking moron, and your "help" was less than useless. It is a big temptation to make yourself look clever without actually turning your brain on, but consider hanging yourself next time instead.
from openface.
from openface.
Related Issues (20)
- BLAS : Program is Terminated. Because you tried to allocate too many memory regions HOT 6
- .mp4 does not support memory mapping
- make failed HOT 1
- Could not find the HAAR face detector location HOT 18
- Problems with GUI (Images shown too short) HOT 2
- macOS make issue HOT 3
- How to turn off the display before building OpenFace? HOT 3
- Memory allocate error HOT 5
- How to get the camera-to-world matrix?
- Issues making OpenFace work in Visual Studio 2017 HOT 22
- Can I call the api in python to read the face box? HOT 4
- The AU intensities generated by OpenFace is inconsistent with the AU intensities manually marked
- GPU support for feature extraction HOT 1
- How to output csv file from input mp4 using openfaceoffline? HOT 6
- I encountered the following problem when compiling the project, I would like to ask how to solve it ah HOT 1
- FaceAnalyzer DetectLandmarks completely crashes PI 5
- Confidence precision levels in CSV file HOT 7
- Requesting help with "cmake -D WITH_OPENMP=ON CMAKE_BUILD_TYPE=RELEASE .." HOT 12
- Negative values for pose_Tz HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openface.