torinmb / mediapipe-touchdesigner

GPU Accelerated MediaPipe Plugin for TouchDesigner
MIT License
522 stars 21 forks source link

Mediapipe keeps showing connecting #72

Open AlanOnePiece opened 4 months ago

AlanOnePiece commented 4 months ago

I am trying to use Mediapipe via touchdesigner, but the camera screen keeps showing "loading"

Screenshot 2024-03-05 at 12 20 55 PM
domisjustanumber commented 2 months ago

Oh hey @AlanOnePiece sorry I missed your post. I suspect you've figured this out by now, but the most likely fix for this is to make sure you are running the .toe file from the release.zip file.

AlanOnePiece commented 2 months ago

Hey Dom, Thank you for your reply. The issue still persists. Is that because the I am using the remote desktop ?

From: Dom Scott @.> Date: Tuesday, April 23, 2024 at 7:30 PM To: torinmb/mediapipe-touchdesigner @.> Cc: Weikuo Zhou (DDB Technology) @.>, Mention @.> Subject: Re: [torinmb/mediapipe-touchdesigner] Mediapipe keeps showing connecting (Issue #72)

Oh hey @AlanOnePiecehttps://github.com/AlanOnePiece sorry I missed your post. I suspect you've figured this out by now, but the most likely fix for this is to make sure you are running the .toe file from the release.zip file.

— Reply to this email directly, view it on GitHubhttps://github.com/torinmb/mediapipe-touchdesigner/issues/72#issuecomment-2073652388, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4HKLYBOEBT36WBXKG3KXI3Y63VJLAVCNFSM6AAAAABEHRRW6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZTGY2TEMZYHA. You are receiving this because you were mentioned.Message ID: @.***>

DDB Worldwide Communications Group Inc. Email Disclaimer - http://e-maildisclaimer.com/ddb.com.html

KaiweiYou commented 1 month ago

same problem here... have no idea whats going on

domisjustanumber commented 1 month ago

Hey @AlanOnePiece yeahhh Remote Desktop is very likely the cause of your issues. We are using webcams to get video into the MediaPipe plugin and I don't think Remote Desktop passes USB webcams to the remote host?

If the MediaPipe plugin can't load a webcam it will sit there on the loading screen forever. Usually you should see some kind of error message about unable to start wecam, but if you're remotely accessing a machine (or a virtual machine?) it could be other things causing issues too.

Can you or @KaiweiYou open the textport (Alt T) and copy the contents here? I don't know if it will help, but might give me some clues

KaiweiYou commented 1 month ago

hey @torinmb thx for responding,but for my case, im not using a remote desktop but just my macbook(m1pro chip). And my touchdesigner version is 2022.32660. The textport content is below:

TouchDesigner  Build 2022.32660 compile on Sat Mar 25 08:12:02 2023
Python 3.9.5 (heads/3.9-Derivative:f3daf99834, Jun  3 2021, 23:08:23) 
[Clang 12.0.5 (clang-1205.0.22.9)]

/project1/MediaPipe (Parameter menusource: Webcam) Traceback (most recent call last):
  File "/project1/MediaPipe", line "tdu.TableMenu(me.findChildren(name='webcam_menu')[0])",
IndexError: list index out of range

/project1/MediaPipe (Parameter menusource: Webcam) Traceback (most recent call last):
  File "/project1/MediaPipe", line "tdu.TableMenu(me.findChildren(name='webcam_menu')[0])",
IndexError: list index out of range
MP server started
connected
data change send ws {'Reset': '1'}
127.0.0.1:62208 /
data change send ws {'Reset': '0'}
Serving from VFS: /
Serving from VFS: /assets/index-af4856c3.js
Serving from VFS: /assets/index-6322d880.css
127.0.0.1:62219 /

I've tried download ur previous version, but still not working. Btw this is the MediaPipe content, maybe you can find out where's going wrong.

KaiweiYou commented 1 month ago

MediaPipe

KaiweiYou commented 1 month ago

hi @domisjustanumber , i just upgraded the version to 2023.11600 and it worked perfectly right now, so i think its probably something wrong with the version. still big thanks for ur help and ur plugin!

AlanOnePiece commented 1 month ago

Hey Dom, Thank you for your response. The Remote Desktop do pass the USB and webcam to the host. I can view the webcam on the system and browser, but it just doesn’t work on the touchdesigner, as screenshot below: [A screenshot of a computer Description automatically generated]

From: Dom Scott @.> Date: Wednesday, May 8, 2024 at 7:38 AM To: torinmb/mediapipe-touchdesigner @.> Cc: Weikuo Zhou (DDB Technology) @.>, Mention @.> Subject: Re: [torinmb/mediapipe-touchdesigner] Mediapipe keeps showing connecting (Issue #72)

Hey @AlanOnePiecehttps://github.com/AlanOnePiece yeahhh Remote Desktop is very likely the cause of your issues. We are using webcams to get video into the MediaPipe plugin and I don't think Remote Desktop passes USB webcams to the remote host?

If the MediaPipe plugin can't load a webcam it will sit there on the loading screen forever. Usually you should see some kind of error message about unable to start wecam, but if you're remotely accessing a machine (or a virtual machine?) it could be other things causing issues too.

Can you or @KaiweiYouhttps://github.com/KaiweiYou open the textport (Alt T) and copy the contents here? I don't know if it will help, but might give me some clues

— Reply to this email directly, view it on GitHubhttps://github.com/torinmb/mediapipe-touchdesigner/issues/72#issuecomment-2100380899, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4HKLYB4IQ7BHQZJYFUPKSLZBIFEVAVCNFSM6AAAAABEHRRW6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGM4DAOBZHE. You are receiving this because you were mentioned.Message ID: @.***>

DDB Worldwide Communications Group Inc. Email Disclaimer - http://e-maildisclaimer.com/ddb.com.html

domisjustanumber commented 3 weeks ago

Mediapipe is set up to use a fixed resolution if 1280 x 720, so it might be the webcam passed over USB can't support that resolution?