Skip to content

Libtorch_install

Moscowsky Anton edited this page Mar 15, 2023 · 5 revisions

Libtorch

Libtorch is C++ API of torch machine learning library.

Install

Download and unzip libtorch. In CMakeLists.txt file of ExtendedObjectDetection project change line 12:

set(torch OFF)

to

set(torch ON)

And specify path to unzipped libtorch in line 43:

list(APPEND CMAKE_PREFIX_PATH "/home/anton/Lib/libtorch")

Then rebuild project.

Clone this wiki locally