I have integrated the new ABI lib in my Docker file which also encapsulates the correct OpenCV version so that the notorious cv::imread() method works. I worked days and nights on attempting to compile libtorch + OpenCV from scratch with or without the -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 flag.

  
      
      GitHub
  
  
    

QuantScientist/DarkTorch 21

A low-latency deep learning inference server using pytorch C++ frontend & NVIDIA GPUs.  - QuantScientist/DarkTorch