Closed AlejoHarris closed 2 years ago
Sorry I forgot to explain that pop-up. It's in the README now. Click Finish
to continue. If you encounter another issue please ask. Thanks.
I updated it one more time (https://github.com/DBraun/PyTorchTOP/commit/4ff0644e9c5975c492a32798056eb8a11e8fa789). It turns out that you don't add CUDA_TOOLKIT_ROOT_DIR
yourself. If the CUDA stuff is in your system path, then because you enable WITH_CUDA
, the generate process will generate a project with CUDA_TOOLKIT_ROOT_DIR
defined.
When building the PyTorchTOP with CMake, this error appears:
CMake Error at CMakeLists.txt:130 (FIND_PACKAGE): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any of the following names:
OpenCVConfig.cmake opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV" provides a separate development package or SDK, be sure it has been installed.
Is the Prefix for OpenCV or LibTorch?
Suppose you built opencv to C:/opencv/build
. Then you should create a system environment variable for OpenCV_DIR
equal to C:/opencv/build
If you'd rather do this temporarily you can just do
set OpenCV_DIR=C:/opencv/build
but picking whatever path is correct for you.
Now when building the PyTorchTOP appears this error:
It's possible that you put the build
directory in the wrong location. Revisit this step: https://github.com/DBraun/PyTorchTOP#building-the-pytorchtop-project
The build
directory should be a sibling of the src
and models
directories.
@AlejoHarris Did you succeed?
Closing due to staleness. Please re-open if issue persists, but don’t try to use higher versions of PyTorch. There’s still a bug with them and so you must use version 1.7.1
When Clicking Configure, the pop up window doesn't show the same options as the ReadMe steps.