Closed jiapei100 closed 7 years ago
I'm not exactly sure what you mean? Can you clarify the question?
CMU and Cambridge are terrific... OpenFace is terrific -- just tested...
Two issues:
Please refer to http://www.visionopen.com/questions/RepositoryInfo.png
After successfully having OpenFace installed on my Ubuntu 16.04,
Two questions:
Cheers Pei
Any place for me to configure building dynamic link?
For building shared instead of static libraries, you should replace the STATIC
tag by SHARED
in the CMakeLists.txt.
Any place for me to specify building into /usr/local/lib ?
You can edit the CMakeLists.txt of the libraries/executables you're interested in. Specifically in the line install ( TARGETS FaceLandmarkVidMulti DESTINATION bin)
(for instance) I guess you should replace bin
with lib
. The executables might better go into /usr/local/bin/
and the libraries into /user/local/lib/
, though.
@TadasBaltrusaitis : I also wonder whether there is a reason for building static libraries instead of shared ones ? I wasn't able to use the API with static libraries, and the executables work well with shared libraries (also on Ubuntu).
@jiapei100 To answer your questions:
@Temigo There is no particular technical reason I decided to go with static rather than shared libraries. As the project was originally based on a Visual Studio one, using static libraries was a bit easier.
Hi @TadasBaltrusaitis, I have built a Docker image that allows users of OpenFace on Ubuntu 16.04 to skip installation and use the binaries straightaway. Doing this because we have a couple of machines in our lab and going through the installation on each will take a lot of efforts. I think it is also good for results replicability.Perhaps, this is useful for anyone who wants to try out the feature extraction quickly?
Hi @benbuleong , that's great news! I'm sure it will be very useful to a lot of people. Do you mind if I advertise it in the readme and the wiki?
Thank you very much @benbuleong, that was really helpful! Don't forget to use the -q
option when running a command, otherwise it won't work within the container.
@TadasBaltrusaitis, sorry for the late reply. Sure, please go ahead if you think it benefits users of OpenFace.
@RomainSabathe, you are welcome. Yes, the -q
option should be used. sshfs
is also installed in the image. That means, we can use OpenFace on a server to extract features from videos hosted another server (avoid copying for thousands of videos). I am sharing this simple bash script in case people find it useful, too.
#!/bin/bash
USER=XXX
MACHINE=YYY
SERVER_DATA_DIR=PATH_TO_VIDEOS_DIRECTORY
DOCKER_DATA_DIR=LOCALLY_MAPPED_DATA_FROM_SERVER
mkdir -p $DOCKER_DATA_DIR
sshfs -o idmap=user $USER@$MACHINE:$SERVER_DATA_DIR $DOCKER_DATA_DIR
./FeatureExtraction -q -f $DOCKER_DATA_DIR/TEST_VIDEO.mp4 -outroot $DOCKER_DATA_DIR -of TEST_VIDEO.features
Cheers Pei