torinmb / mediapipe-touchdesigner

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

file load version conflict #49

Closed sagarhz closed 8 months ago

sagarhz commented 8 months ago

Hey there! I just wanted to express my gratitude for the amazing work you all have done. I really appreciate the fact that you share it with others. However, I encountered an error while trying to open the project file. Although I accepted the prompt to open the project, the MediaPipe seems to be stuck in the loading state and is not working properly.

image image

domisjustanumber commented 8 months ago

Hi @sagarhz thanks for the kind words 😊

As the message says, we have only tested the componemt in 2022.33910 (and later) versions of TouchDesigner. If you update your installation to a newer version, it should work.

sagarhz commented 8 months ago

Thanks for your response. As you said, I've tried with the newer version, and although the error at the beginning is gone, the problem has stayed the same.🥲🫠

image

domisjustanumber commented 8 months ago

Sorry it's still not loading. This usually happens when the MediaPipe component can't load the webcam source you have selected.

Can you confirm which webcam you have selected?

If you are using SpoutCam, the video source being fed to SpoutCam needs to be 720p otherwise that can also cause it to fail

sagarhz commented 8 months ago

It's my default laptop webcam, and as I can't use any other webcam right now, is there any solution? image

domisjustanumber commented 8 months ago

We just released a new version that has more debug and fixes a few bugs around webcams not loading, would you be able to try it and see what happens? https://github.com/torinmb/mediapipe-touchdesigner/releases/tag/v0.3.2

sagarhz commented 8 months ago

I appreciate your quick responses and the update. I checked all the options in the webcam menu, but the problem still stays on; There may be something wrong with my system anyway.

image

domisjustanumber commented 8 months ago

Thanks for the screenshot - can you show me what the error messages say?

sagarhz commented 8 months ago

image

domisjustanumber commented 8 months ago

Ah ok, it looks like you have something else running on network port 3002 that is blocking the plugom from working. Can you try another port number (3003 should do it) to see if that fixes it?

sagarhz commented 8 months ago

As I am a newbie, can u please guide me on how to do this?🫠

torinmb commented 8 months ago
Screenshot 2023-11-02 at 11 35 45 AM

On the MediaPipe component try setting the MediaPipe Port to a different number. You may need to also hit the Reset button after changing it.

sagarhz commented 8 months ago

Thanks... I'm shy to say it is still not working..

torinmb commented 8 months ago
Screenshot 2023-11-02 at 12 26 18 PM

Can you turn off the video device in and then try hitting reset on the MediaPipe component? Also if there are still errors can you send a screenshot of the error messages?

torinmb commented 8 months ago

Hey @sagarhz can you double check that you downloaded the release.zip? I get a similar error if I open the source.zip which is the development environment. Also make sure to extract the zip contents before opening.

Screenshot 2023-11-02 at 1 19 13 PM
torinmb commented 8 months ago

Ok we found it!! We'll release an fix soon, but for now you can fix your network by doing the following: 1) Navigate to the MediaPipe component the Common tab 2) Change the external tox path to ./toxes/MediaPipe.tox 3) Click Re-Init Network

Screenshot 2023-11-02 at 2 11 23 PM
torinmb commented 8 months ago

I just pushed a quick fix in and added a new release.zip that fixes the issue. You can download the latest here: https://github.com/torinmb/mediapipe-touchdesigner/releases/tag/v0.3.2

It's still the same version number, but notice the release.zip was just updated

sagarhz commented 8 months ago

Hey! First of all, Sorry about my tardy response, and thank you for helping and trying to fix errors. Second, YES!! It's working now 🥹🥹 Thanks a lot!! I first downloaded the new release file, but the mediaPipe was still in the loading state. Then I tried the steps you mentioned about turning off my video device in, and it worked! I don't know if the problem could be solved in the first place with just the video device in (as I was not online to check your response), but thank you for releasing a new version. I really appreciate your guidance.

image

domisjustanumber commented 8 months ago

Glad it's all working now, have fun with it!