sdcb / PaddleSharp

.NET/C# binding for Baidu paddle inference library and PaddleOCR
Apache License 2.0
1.02k stars 197 forks source link

tinypose Unexpected datatype: Int64 #97

Open traitors09 opened 1 month ago

traitors09 commented 1 month ago

Describe the bug

使用GPU,其他模型都是正常的。 using (PaddleDetector detector = new PaddleDetector(modelDir, Path.Combine(modelDir, "infer_cfg.yml"), PaddleDevice.Gpu())) tinypose_128x96模型,报错: Unexpected datatype: Int64

Steps to reproduce the bug

using (PaddleDetector detector = new PaddleDetector(modelDir, Path.Combine(modelDir, "infer_cfg.yml"), PaddleDevice.Gpu())) tinypose_128x96模型,报错: Unexpected datatype: Int64

Expected behavior

No response

Screenshots

No response

Release version

No response

IDE

No response

OS version

No response

Additional context

No response

traitors09 commented 1 month ago

image

traitors09 commented 1 month ago

https://bj.bcebos.com/v1/paddledet/models/keypoint/tinypose_128x96.tar 使用的是官方模型

traitors09 commented 1 month ago

在 Sdcb.PaddleDetection.PaddleDetector.b__9_0(String x) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() 在 System.Linq.Buffer1..ctor(IEnumerable1 source) 在 System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) 在 Sdcb.PaddleDetection.PaddleDetector.Run(Mat src) 在 PostureRecogntion.Form1.button2_Click(Object sender, EventArgs e) 在 E:\traitor\PostureRecogntion\PostureRecogntion\Form1.cs 中: 第 149 行 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ButtonBase.WndProc(Message& m) 在 System.Windows.Forms.Button.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 在 PostureRecogntion.Program.Main() 在 E:\traitor\PostureRecogntion\PostureRecogntion\Program.cs 中: 第 19 行

traitors09 commented 1 month ago

image 不支持int64的数据吗?

traitors09 commented 1 month ago

修改了这里的代码直接报错。。。

sdcb commented 1 month ago

keypoint目前还不支持