Re,
ok I had to uninstall the latest CUDA12.2 and install CUDA 12.1 instead
seems to work now
Is it normal that despite having a RTX3070 graphic card,
When I set the Depth Viewer to HD720 60 fps Neural Mode
My GPU is at 100% and CPU at 9% ?
If relevant, when installing drivers, I chose STUDIO drivers instead of GAME READY drivers
Now i am trying to build examples C++ project in Visual Studio 2019.
Strangely, most of project build successfully but not the body tracking. Can you have a look ?
When generating the body tracking project with CMAKE i have this warning :
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
CMake Warning (dev) at CMakeLists.txt:14 (find_package):
Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake
--help-policy CMP0146" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring done (0.3s)
On my other computer with the old Nvidia card, I didn’t have this warning.
And then in Visual 2019 on the new computer when building I have this output
Rebuild started...
1>------ Rebuild All started: Project: ZED_Body_Tracking_Viewer, Configuration: Release x64 ------
1>Building Custom Rule C:/PROD/DEV/zed-sdk-master/body tracking/body tracking/cpp/CMakeLists.txt
1>GLViewer.cpp
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6543,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6595,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6610,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6619,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6870,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6907,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7110,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7125,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7311,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(133,43): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(133,30): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(134,47): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(134,34): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(178,31): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(258,126): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(433,60): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(449,40): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(605,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(606,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(611,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(612,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(621,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(622,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,81): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,65): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(627,45): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,51): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,44): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\GLViewer.cpp(628,35): warning C4244: 'argument': conversion from 'double' to 'const T', possible loss of data
1> with
1> [
1> T=float
1> ]
1>TrackingViewer.cpp
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6543,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6595,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6610,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6619,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6870,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6907,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7110,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7125,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7311,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\include\TrackingViewer.hpp(49,104): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\TrackingViewer.cpp(73,47): error C2065: 'BODY_70_BONES': undeclared identifier
1>main.cpp
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6543,16): warning C4251: 'sl::InitParameters::sdk_verbose_log_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6595,19): warning C4251: 'sl::InitParameters::input': class 'sl::InputType' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(673): message : see declaration of 'sl::InputType'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6610,16): warning C4251: 'sl::InitParameters::optional_settings_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6619,16): warning C4251: 'sl::InitParameters::optional_opencv_calibration_file': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::InitParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6870,19): warning C4251: 'sl::PositionalTrackingParameters::initial_world_transform': class 'sl::Transform' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(3012): message : see declaration of 'sl::Transform'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(6907,16): warning C4251: 'sl::PositionalTrackingParameters::area_file_path': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::PositionalTrackingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7110,31): warning C4251: 'sl::SpatialMappingParameters::allowed_resolution': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7125,31): warning C4251: 'sl::SpatialMappingParameters::allowed_range': struct 'std::pair<float,float>' needs to have dll-interface to be used by clients of struct 'sl::SpatialMappingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7002): message : see declaration of 'std::pair<float,float>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7311,16): warning C4251: 'sl::RecordingParameters::video_filename': class 'sl::String' needs to have dll-interface to be used by clients of struct 'sl::RecordingParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(145): message : see declaration of 'sl::String'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563,35): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_filter': class 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7563): message : see declaration of 'std::vector<sl::OBJECT_CLASS,std::allocator<sl::OBJECT_CLASS>>'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569,39): warning C4251: 'sl::ObjectDetectionRuntimeParameters::object_class_detection_confidence_threshold': class 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>' needs to have dll-interface to be used by clients of struct 'sl::ObjectDetectionRuntimeParameters'
1>C:\Program Files (x86)\ZED SDK\include\sl/Camera.hpp(7569): message : see declaration of 'std::map<sl::OBJECT_CLASS,float,std::less<sl::OBJECT_CLASS>,std::allocator<std::pair<const sl::OBJECT_CLASS,float>>>'
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\include\TrackingViewer.hpp(49,104): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(98,80): warning C4244: 'argument': conversion from 'float' to 'size_t', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(100,91): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(179,13): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>C:\PROD\DEV\zed-sdk-master\body tracking\body tracking\cpp\src\main.cpp(184,20): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>Generating Code...
1>Done building project "ZED_Body_Tracking_Viewer.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Ok,
I’ve installed CMAKE 3.25
And don’t have the previous warning anymore.
But body tracking still fail to build.
Even tried with Visual Studio 2022 and failed too
I tried to build ZED_Object_detection_image_viewer.exe
succeeded but when execute the exe
I have this message :
The code execution cannot proceed because of MSVCR120.dll was not found
Even though I have installed latest VC++ redist here https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170
And even though I do have this file located here : C:\Windows\SysWOW64
edit: same file missing with other project like CUDA refocus, positionnal tracking or even depth sensing
edit2: Ok, solved this by installing also x86 redist !
So for now, to sumup, when building all projects only those 3 failed :
- Done building project “ZED_concurrent_detections.vcxproj” – FAILED.
- Done building project “ZED_BodyFusion.vcxproj” – FAILED.
- Done building project “ZED_Body_Tracking_Viewer.vcxproj” – FAILED.
The rest succeeded.
And if it is relevant this one succeeded
- tutorials/tutorial 8 - body tracking
I can see in the console list of keypoints
My config is :
- Windows 11 pro
- i-11800H , 32go RAM, nvidia rtx 3070 laptop
- Visual studio 2022
- ZED SDK 4.0.5
- CUDA V12.1.105
- ZED 2i 1523
edit: wanted to try SDK 4.04 but cannot find on your site where to dwonload it
OK, I managed to find 4.0.4 here
https://stereolabs.sfo2.cdn.digitaloceanspaces.com/zedsdk/4.0/ZED_SDK_Windows_cuda12.1_v4.0.4.exe
Rebuild and it’s WORKING !
Glad you could make it work !
If I sum up, 4.0.4 worked better than 4.0.5 on your setup right ? You only had the 3 projects you mention not working ?
Hi,
Yes, that is exactly that!
Do you know if its only me with my config or a more general bug?
Don’t know yet, but will definitely test it.
Is it normal that despite having a RTX3070 graphic card which has a lot of CUDAs,
When I set the Depth Viewer to HD720 60 fps Neural Mode
My GPU is at 100% and CPU at 9% ?
Hi,
NEURAL is more resource-intensive than other GPUs, it is especially optimized to use the GPU. But 100% seems quite a lot. Does it reach 60 fps ?
Hi,
I have the same issue with my ZED 2 on SDK 4.1 with CUDA 12. I followed this thread but could not solve my issue. Any clues?
I actually solved this issue by downgrading to Python 3.8 (I was using the most recent release, Python 3.12) and following the instructions in the Github thread linked below.
[ImportError · Issue #147 · stereolabs/zed-python-api · GitHub]
I was banging my head against this error in 2024 with SDK 4.1.0 on CUDA 12.1.0. Working from home, everything installed on my laptop and ran just fine. On my main desktop at the office, however, the Unity SDK would abort optimizing body models after 500+ seconds, ZED Diagnostic would show the Corrupted SDK detected. Please reinstall the ZED SDK
error on the ZED SDK tab, and optimizing AI models within ZED Diagnostic would crash outright at the start of the human body models.
After un- and re-installing almost my whole NVIDIA stack as appeared on Apps & Features, I suspected I might have some dodgy initial optimization state left over from when I did legitimately have several older CUDA versions installed, so I wound up at https://support.stereolabs.com/hc/en-us/articles/9747407795223-How-can-I-optimize-the-ZED-SDK-AI-models-manually looking to flush the model data (which I noticed persisted across SDK uninstallations). Invoking ZED Diagnostic from the commandline eve to just uninstall models gave me an error that CUDNN was not even of a high enough version to flush already-optimized models, and claimed I had 8.40 when I needed at least 8.9x. Which was very odd, since I had just installed CUDNN 9.1 per earlier in this thread, and no CUDNN entries were present in my install registry. How to uninstall CUDA9.0 and cuDNN under Win10? - #7 by marzieh.mohammadi69 - CUDA Setup and Installation - NVIDIA Developer Forums suggests this is an issue with older CUDNN packages- either NVIDIA does not provide a proper installer with an uninstaller, or else the uninstaller package gets removed and the installation lingers.
I still do not know how to get CUDNN 8.4 entirely off my system, but I was able to put CUDNN 9.1 back on, and then manually edit my PATH environment variable so it points at the C:\Program Files\NVIDIA\CUDNN\v9.1
and C:\Program Files\NVIDIA\CUDNN\v9.1\bin
directories, and now ZED Diagnostic does not complain about the SDK being corrupted… but still crashes on body model optimization.
As an aside, much earlier, we are recommended to manually install Tensorflow as well. Which version? The TensorRT download page now lists TensorRT 1 thru TensorRT 10, and e.g. TensorRT 10 is further split into GA and EA packages.
update: running optimizations on the command-line per the previous link on manual removal to see if I could isolate any further errors appears to not crash, at least so far, so this may be partly a ZED Diagnostic GUI issue.