-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom_models convert error - Cannot infer shapes or values for node "If_38"
#8
Comments
I didn't get this error. Maybe we don't have the same version of the tools used by generate_post_proc_onnx.py.
Can you create this file like above, then execute : If you still get an error, can you tell me the versions of: torch, onnx, onnx-simplifier, onnx_graphsurgeon (with |
I rebuilt a virtual environment with
|
Thank you. |
Check if issue already exists Describe the bug Minimal Reproducible Example Append the MRE to the bug report Expected behavior Pipeline Graph Attach system log Additional context import HandTrackerRenderer, HandTrackerEdge import boardimport digitalioimport cv2 red_o = digitalio.DigitalInOut(board.C0)red_o.direction = digitalio.Direction.OUTPUTred_o.value = Falsetracker_args = {"use_same_image" : True} tracker = HandTrackerEdge.HandTracker( renderer = HandTrackerRenderer.HandTrackerRenderer( # GUIwd = tk.Tk() # 建立[根視窗]wd.title("Riko Machine Vision - HV-R100 - 手部安全防護") # 建立視窗名稱wd.iconbitmap("Riko.ico") # 建立視窗 iconw = 1920h = 1080x = -10y = 0wd.geometry("%dx%d+%d+%d" %(w, h, x, y)) # 設定視窗大小及位置( + 左 & 上;- 右 & 下)pws = ttk.PanedWindow(wd, orient = tk.HORIZONTAL) # 全視窗父容器pws.pack( fill = tk.BOTH, expand = True) # expand 是否填滿視窗#======================================================================================#※ 左邊的畫面# 左邊的父容器pw = ttk.PanedWindow(pws, orient = tk.VERTICAL)pws.add(pw, weight = 2)label_1 = tk.Label(pw, bg = "pale green", width = 1920, height = 1080) # 畫面影像容器pw.add(label_1, weight = 2)#====================================================================================== #※ 右邊的資訊列# 右邊的父容器pw2 = ttk.PanedWindow(pws, orient = tk.VERTICAL)pws.add(pw2, weight = 2)#-----------------------------------------------------------------------------------# 數據列容器bg_lf1 = "sky blue"labelframe_1 = tk.LabelFrame(pw2, bg = bg_lf1, width = 160, height = 700)pw2.add(labelframe_1, weight = 2)組別min_d_label_1 = tk.Label(labelframe_1, bg = bg_lf1, text = "手部安全防護 ", width = 10,font = ("Times", 16, "bold"))min_d_label_1.grid(padx = 3, pady = 2, row = 0, column = 0, sticky = tk.E + tk.W)min_d_label_4 = tk.Label(labelframe_1, bg = bg_lf1, width = 2, font = ("Times", 24, "bold"))min_d_label_4.grid(padx = 3, pady = 2, row = 1, column = 2, sticky = tk.E + tk.W)# 最近距離min_d_label_1 = tk.Label(labelframe_1, bg = bg_lf1, text = "最近距離 : ", width = 8,font = ("Times", 24, "bold"))min_d_label_1.grid(padx = 3, pady = 2, row = 2, column = 0, sticky = tk.E + tk.W)min_d_label_2 = tk.Label(labelframe_1, bg = bg_lf1, width = 8, font = ("Times", 24, "bold"))min_d_label_2.grid(padx = 3, pady = 2, row = 3, column = 0, sticky = tk.E + tk.W)min_d_label_3 = tk.Label(labelframe_1, bg = bg_lf1, width = 8, font = ("Times", 24, "bold"))min_d_label_3.grid(padx = 3, pady = 2, row = 3, column = 1, sticky = tk.E + tk.W)min_d_label_4 = tk.Label(labelframe_1, bg = bg_lf1, width = 8, font = ("Times", 24, "bold"))min_d_label_4.grid(padx = 3, pady = 2, row = 4, column = 1, sticky = tk.E + tk.W)# fpsfps_label_1 = tk.Label(labelframe_1, bg = bg_lf1, text = "FPS : ", width = 8,font = ("Times", 24, "bold"))fps_label_1.grid(padx = 3, pady = 2, row = 5, column = 0, sticky = tk.W )fps_label_2 = tk.Label(labelframe_1, bg = bg_lf1, fg = "orange red", width = 8,font = ("Times", 24, "bold"))fps_label_2.grid(padx = 3, pady = 2, row = 5, column = 1, sticky = tk.E + tk.W)while True :
renderer.exit() |
Hi, |
Hi geaxgx: Because we have found original repo on depthai_hand_tracker we conform that depthai version is latest (2.19.1.0) as attached picture: We seem to use the old of your repo, could you please tell us The problem occurs every time while my hand is closing to camera. We will try the original repo demo.py if it reproduced the problem all the best~~ |
The title of the issue you are writing in is titled "custom_models convert error - Cannot infer shapes or values for node "If_38"". The latest commit of this repo is from May 15 2022. If you have cloned or downloaded this repo since that date, you should have the latest version. Otherwise git pull or download it again and try |
Dear geaxgx: We are bad to create this issue on the wrong title. all the best~~ |
@Undertaker7533967 I was facing the same problem, downgraded depthai to 2.15 and it worked. Thanks! |
I wanted to implement custom_model according to your instructions, but the following error occurred when converting to openvino
How did you solve it, could you help me?
The text was updated successfully, but these errors were encountered: