How to create a FaceDetect / cnn_face_detection project on github?

I want to use the https://github.com/FaceDetect/cnn_face_detection project stored in the Github repository, but it shows so many different files and does not have the appropriate documentation. Can someone tell me how to build this github project into an executable?

+7
github visual-studio build visual-studio-2010
source share
3 answers

GitHub is mainly used for code. in various languages

How to make any github project usable or executable is language specific and for the project itself.

Also, he must be careful with the terms of the license , the state of reliability and completeness of the project that you intend to work on (for example: github.com/leezivin/FaceDetection_CNN - snakecharmerb); The fact that the specific project you are mentioning at that time does not have README.md and a file with license files, allows you to suggest the author or someone to make / fix sources for more information.

By the way, the mentioned project looks like C ++ language ; therefore, you should be able to compile and link it (empty the repository) in some form of executable file; Specific repo: cnn_face_detection contains Visual Studio solutions and projects, so a simple way could be to use Visual Studio and open / import artifacts (this depends on the version of visual studio that you will ultimately be able to use).

Also required:

  • choose whether you want to trust (or not trust) the code:

trusted code

  1. to take care of the dependency paths referenced by prj, because probably they should be changed to the actual paths if you cloned (downloaded) the sources in your own file system. if you do not, you will not be able to compile the solution (i.e. the three projects contained in the repo): project settings
+2
source share

If the github project has releases or tag , such as releasing a tornado on github .

Then you can run

pip install https://github.com/project_name/archive/version.tar.gz

like this:

pip install https://github.com/tornadoweb/tornado/archive/v4.3.0.tar.gz to install the github online project.

But when the project does not have a release tab. You need to clone the project and compile from the source.

In most cases, you can run python setup.py install .

The question has a python tag. So take a python project as an example.

+3
source share
  • After inspecting the project, you will find folders with the names "VC2010" and "VC2006". This is a good clue that this is a Microsoft Visual C (or Visual Studio) project. Inside you will find .sln and .vcxproj files, which are β€œsolutions” and β€œproject” files, according to this list

  • Download and install Visual Studio from here . There are several options, try the Community version first.

  • Download the project source code from github. To make it simple, you can simply use the "Download ZIP" button on the project home page.

  • Launch Visual Studio and follow these instructions to open one of the solution files (.sln):

    • From the File menu, select Open Solution. The Open Solution dialog box opens.
    • Go to the solution you need.
    • Click the solution folder in which the solution file in the folder is displayed and selected. If the solution file does not appear, make sure the value in the "File Type" list is "Solution Files".
    • Click "Open."
  • Create using these instructions . At this point, you either have .exe or .dll (depending on which project you are building).

+2
source share

All Articles