openpose_unity_plugin icon indicating copy to clipboard operation
openpose_unity_plugin copied to clipboard

How to OpenPose Unity Setting and Run the Demo?

Open YouMinJung opened this issue 4 years ago • 2 comments

Issue Summary

I did downloaded the openpose_unity_plugin and then do the instruction. getPlugins.bat -> getModels.bat -> copy the OpenPosePlugin folder into my unity project asset folder. And then I ran the demo scene. WebCam is on. But Unity suddenly destroyed... I don't know the reason. And also Unity returned the below error.

Errors (if any)

ArgumentOutOfRangeException: Non-negative number required. Parameter name: count System.IO.BinaryReader.ReadBytes (System.Int32 count) (at :0) Mono.Cecil.PE.ImageReader.ReadDebugHeader () (at <28cdca1704d2491781795499c297b78b>:0) Mono.Cecil.PE.ImageReader.ReadImage () (at <28cdca1704d2491781795499c297b78b>:0) Mono.Cecil.PE.ImageReader.ReadImage (Mono.Disposable1[T] stream, System.String file_name) (at <28cdca1704d2491781795499c297b78b>:0) Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <28cdca1704d2491781795499c297b78b>:0) Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <28cdca1704d2491781795499c297b78b>:0) Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) (at <28cdca1704d2491781795499c297b78b>:0) UnityEditor.AssemblyValidation.LoadAssemblyDefinitions (System.String[] assemblyPaths, System.String[] searchPaths) (at C:/buildslave/unity/build/Editor/Mono/AssemblyValidation.cs:196) UnityEditor.AssemblyValidation.ValidateAssemblies (System.String[] assemblyPaths, System.Boolean enableLogging) (at C:/buildslave/unity/build/Editor/Mono/AssemblyValidation.cs:110)

broken assembly Assets/OpenPose/Plugins/ActiproSoftware.Docking.Wpf.dll, this assembly can cause crashes in the runtime Unloading broken assembly Assets/OpenPose/Plugins/ActiproSoftware.Shared.Wpf.dll, this assembly can cause crashes in the runtime Unloading broken assembly Assets/OpenPose/Plugins/SpinnakerNETGUId_v140.dll, this assembly can cause crashes in the runtime Unloading broken assembly Assets/OpenPose/Plugins/SpinnakerNETGUI_v140.dll, this assembly can cause crashes in the runtime

Environment

Windows 10 Unity 2018.3.3f1 I installed the CUDA 10.0 and cuDNN v7.5.0 for CUDA 10.0 GPU is NVIDIA GeForce GTX 950M

How can I fix this problem..?? Is there something wrong action that setting the OpenPose_unity_plugin? It because of the memory problem..? Help me, please....!!

YouMinJung avatar Dec 12 '19 06:12 YouMinJung

Pretty sure is a memory error. Try reducing the net resolution to -1x80.

Andergraw avatar May 15 '20 17:05 Andergraw

@YouMinJung I'm having the exact same problem but with a better pc. RAM:- 16GB i5-7400 + 2GB GTX1050 + SSD Windows 10 at unity version - 2018.4.28f1

@Andergraw if its still the RAM problem, please tell me where to reduce the net resolution to -1x80.

midopooler avatar Oct 25 '20 08:10 midopooler