Python Forum
How to run detectron2, as python embedded code in C++, on GPU?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run detectron2, as python embedded code in C++, on GPU?
#2
To do this in CMake, do this in your CMakeLists.txt file threes:

find_package(Python3 REQUIRED COMPONENTS Development)
include_directories(myProject ${Python3_INCLUDE_DIRS})
target_link_libraries(myProject PRIVATE ${Python3_LIBRARIES})
Reply


Messages In This Thread
RE: How to run detectron2, as python embedded code in C++, on GPU? - by Navarro - May-18-2023, 09:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding libraries to embedded Python as a ZIP The_Oman 0 1,313 May-05-2023, 04:05 PM
Last Post: The_Oman
Bug Embedded Python Memory Leaks Alexei 1 1,098 Sep-16-2022, 01:15 PM
Last Post: Alexei
  Embedded Python in C++ Xeno 19 3,814 Aug-03-2022, 07:29 AM
Last Post: Gribouillis
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,580 Dec-22-2020, 02:06 PM
Last Post: tryfon
  Can Embedded Python run any shared library on Android ? sprotz 0 2,383 Nov-08-2020, 12:21 PM
Last Post: sprotz
  How to split and combine embedded lines using less code pjfarley3 6 2,666 Aug-13-2020, 09:13 PM
Last Post: pjfarley3
  memory leak on embedded python in c++ asdf3721 3 3,477 Jul-16-2020, 06:33 AM
Last Post: Gribouillis
  Embedded Python PyObject_CallObject function JRHeisey 1 2,465 Nov-27-2019, 01:50 AM
Last Post: casevh
  Trying to implement Python into embedded OS thesurya7 2 2,480 Apr-02-2019, 06:38 PM
Last Post: ebolisa
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 2,900 Mar-21-2019, 08:54 PM
Last Post: mmoelle1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020