不使用GPU模块
This commit is contained in:
parent
eeee1a2252
commit
5daf7b6bf2
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,3 +12,5 @@ Makefile.*
|
|||||||
*.qm
|
*.qm
|
||||||
*.onnx
|
*.onnx
|
||||||
*.bmp
|
*.bmp
|
||||||
|
opencv*
|
||||||
|
opencv
|
||||||
|
|||||||
10
Makefile
10
Makefile
@ -241,6 +241,7 @@ Makefile: cotton_double2.pro ..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\win32-msvc
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\resolve_config.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\resolve_config.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exclusive_builds_post.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exclusive_builds_post.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\default_post.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\default_post.prf \
|
||||||
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\win32\console.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qtquickcompiler.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qtquickcompiler.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\precompile_header.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\precompile_header.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\warn_on.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\warn_on.prf \
|
||||||
@ -253,7 +254,6 @@ Makefile: cotton_double2.pro ..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\win32-msvc
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\uic.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\uic.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qmake_use.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qmake_use.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\file_copies.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\file_copies.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\win32\windows.prf \
|
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\testcase_targets.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\testcase_targets.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exceptions.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exceptions.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\yacc.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\yacc.prf \
|
||||||
@ -263,13 +263,11 @@ Makefile: cotton_double2.pro ..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\win32-msvc
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Gui.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Gui.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Network.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Network.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Core.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Core.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6EntryPoint.prl \
|
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\build_pass.prf \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\build_pass.prf \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Widgetsd.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Widgetsd.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Guid.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Guid.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Networkd.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Networkd.prl \
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Cored.prl \
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Cored.prl
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6EntryPointd.prl
|
|
||||||
$(QMAKE) -o Makefile cotton_double2.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
|
$(QMAKE) -o Makefile cotton_double2.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\spec_pre.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\spec_pre.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\common\windows-desktop.conf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\common\windows-desktop.conf:
|
||||||
@ -428,6 +426,7 @@ Makefile: cotton_double2.pro ..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\win32-msvc
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\resolve_config.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\resolve_config.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exclusive_builds_post.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exclusive_builds_post.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\default_post.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\default_post.prf:
|
||||||
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\win32\console.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qtquickcompiler.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qtquickcompiler.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\precompile_header.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\precompile_header.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\warn_on.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\warn_on.prf:
|
||||||
@ -440,7 +439,6 @@ Makefile: cotton_double2.pro ..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\win32-msvc
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\uic.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\uic.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qmake_use.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\qmake_use.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\file_copies.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\file_copies.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\win32\windows.prf:
|
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\testcase_targets.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\testcase_targets.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exceptions.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\exceptions.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\yacc.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\yacc.prf:
|
||||||
@ -450,13 +448,11 @@ cotton_double2.pro:
|
|||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Gui.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Gui.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Network.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Network.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Core.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Core.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6EntryPoint.prl:
|
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\build_pass.prf:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\mkspecs\features\build_pass.prf:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Widgetsd.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Widgetsd.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Guid.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Guid.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Networkd.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Networkd.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Cored.prl:
|
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6Cored.prl:
|
||||||
..\..\..\..\Qt\6.7.3\msvc2022_64\lib\Qt6EntryPointd.prl:
|
|
||||||
qmake: FORCE
|
qmake: FORCE
|
||||||
@$(QMAKE) -o Makefile cotton_double2.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
|
@$(QMAKE) -o Makefile cotton_double2.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
|
||||||
|
|
||||||
|
|||||||
2274
Makefile.Debug
2274
Makefile.Debug
File diff suppressed because one or more lines are too long
2274
Makefile.Release
2274
Makefile.Release
File diff suppressed because one or more lines are too long
@ -3,6 +3,7 @@ QT += core gui network
|
|||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
CONFIG += c++17
|
CONFIG += c++17
|
||||||
|
CONFIG += console
|
||||||
|
|
||||||
# You can make your code fail to compile if it uses deprecated APIs.
|
# You can make your code fail to compile if it uses deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
@ -44,7 +45,9 @@ LIBS += -L$${PWD}/LIB -lmilblob
|
|||||||
|
|
||||||
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
$${PWD}/opencv410-vs22/x64/vc17/lib/*.lib
|
# $${PWD}/opencv410-vs22/x64/vc17/lib/*.lib
|
||||||
|
$${PWD}/opencv/build/x64/vc16/lib/*.lib
|
||||||
|
|
||||||
INCLUDEPATH += \
|
INCLUDEPATH += \
|
||||||
$${PWD}/opencv410-vs22/include
|
# $${PWD}/opencv410-vs22/include
|
||||||
|
$${PWD}/opencv/build/include
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!DOCTYPE QtCreatorProject>
|
||||||
<!-- Written by QtCreator 15.0.0, 2024-12-29T01:01:20. -->
|
<!-- Written by QtCreator 15.0.0, 2025-01-01T23:01:59. -->
|
||||||
<qtcreator>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
|||||||
13
dist/nvcc.profile
vendored
Normal file
13
dist/nvcc.profile
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
TOP = $(_HERE_)/..
|
||||||
|
|
||||||
|
NVVMIR_LIBRARY_DIR = $(TOP)/$(_NVVM_BRANCH_)/libdevice
|
||||||
|
|
||||||
|
PATH += $(TOP)/$(_NVVM_BRANCH_)/bin;$(_HERE_);$(TOP)/lib;
|
||||||
|
|
||||||
|
INCLUDES += "-I$(TOP)/include" $(_SPACE_)
|
||||||
|
|
||||||
|
LIBRARIES =+ $(_SPACE_) "/LIBPATH:$(TOP)/lib/$(_WIN_PLATFORM_)"
|
||||||
|
|
||||||
|
CUDAFE_FLAGS +=
|
||||||
|
PTXAS_FLAGS +=
|
||||||
@ -68,8 +68,8 @@ cv::dnn::Net ONNXRunner::loadModel(const std::string& modelPath) {
|
|||||||
} else {
|
} else {
|
||||||
qDebug() << "成功加载ONNX模型:" << QString::fromStdString(modelPath);
|
qDebug() << "成功加载ONNX模型:" << QString::fromStdString(modelPath);
|
||||||
}
|
}
|
||||||
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); // Use CUDA backend
|
// net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA); // Use CUDA backend
|
||||||
net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); // Run on GPU
|
// net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA); // Run on GPU
|
||||||
return net;
|
return net;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user