DGM for Ubuntu

Semantic Image Segmentation with Conditional Random Fields
nanjiang

DGM for Ubuntu

Postby nanjiang » Fri Apr 13, 2018, 05:35

Hello,
I am currently research on CRF for point cloud segmentaion task, and my computer system is Ubuntu.
so I am wondering when does the DGM for Ubuntu develope for users?

Thank you! :)

User avatar
Creator
Posts: 151
Joined: Tue Dec 16, 2008, 20:52
Location: Hannover, Germany
Contact:

Re: DGM for Ubuntu

Postby Creator » Tue Apr 17, 2018, 02:27

Currently we port DGM library to MacOS. In particular the latest version from GitHub (MacOS) may be already compiled and used in MacOS.

It is sad, but at the moment we do not concentrate on supporting Linux operating systems. However, since MacOS is based on Linux, I hope it would be not so difficult to run the latest version of DGM also in Ubuntu (with some modifications in CMakeLists.txt files).

Please read also this post. If you can get the DGM library to compile in Ubuntu, please submit your changes to GitHub. It will help our Linux users a lot.

Genjin

Re: DGM for Ubuntu

Postby Genjin » Fri Aug 24, 2018, 19:26

I could build the DGM library for Ubuntu.
In order to do that you need to go through the following steps:
  • rename modules/DGM/Random.h to modules/DGM/random.h
  • rename Data folder to data
  • in tests/CMakeLists.txt file add flags -lpthread -lm to the target_link_libraries():

    Code: Select all

    target_link_libraries(Tests ${OpenCV_LIBS} ${DGM_LIB} -lpthread -lm)
  • finally, in the main CMakeLists.txt change the library extesion from .dylib to .so:

    Code: Select all

    set(LIB_SUFFIX ".dylib")

That's it! After these 4 modifications the library might be build in Ubuntu.

User avatar
Creator
Posts: 151
Joined: Tue Dec 16, 2008, 20:52
Location: Hannover, Germany
Contact:

Re: DGM for Ubuntu

Postby Creator » Fri Aug 31, 2018, 17:37

Please use the following commands to build the library for Ubuntu:

Code: Select all

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install
make clean

Many thanks to Genjin!!!


Return to “Direct Graphical Models”

Who is online

Users browsing this forum: No registered users and 1 guest