lsrock1 / maskrcnn_benchmark.cpp

Implementation maskrcnn-benchmark, pytorch c++ frontend
MIT License
81 stars 23 forks source link

OpenCV #8

Closed soldierofhell closed 4 years ago

soldierofhell commented 5 years ago

Hi, are there any benefits from source compilation instead of using binaries? It takes hell lot of time :) Regards,

lsrock1 commented 5 years ago

Related issue https://github.com/pytorch/pytorch/issues/17492

Because of pytorch's

cmake -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0

compile option. it doesn't compatible with the compiled libraries without ABI=0

Now, pytorch supports common compiled libtorch. So, If you download it, you don't have to compile opencv. I totally forgot to update it, Thanks!

soldierofhell commented 5 years ago

I mange to compile and run this simple example https://github.com/pytorch/examples/tree/master/cpp/custom-dataset with opencv binaries included in default colab ubuntu 18.04 even with Pre-cxx11 ABI version of libtorch