ubicomplab/rPPG-Toolbox

Is this repo compatible to be used on a macbook?

Closed this issue · 4 comments

Whenever I try running the models locally on my own data, I keep getting this issue:

Screenshot 2024-09-27 at 11 38 09 AM

Here is my yaml config file:
image
image

Hi @Niteesh-Kalangi,

When you went through the repo setup, did you run into any issues? Maybe try running through those setup instructions again and be sure to carefully observe the terminal output. I wonder if there's some sort of installation issue going on, perhaps with a specific library or two and with relation to newer MacBooks having their own, custom chip architecture (e.g., M1, M2, etc).

Generally speaking, this repo should be compatible, though it's possible there's some kind of compilation-related mismatch going on with newer MacBooks. Pretty much all of the repo contributors have only developed and tested this repo's code on machines with some kind of Linux, and typically we've seen users of the repo use either Windows or Linux.

You can try installing something like this and looking up related information, assuming you do indeed have a newer MacBook with Apple's chip architecture.

Oh yeah, when I tried running the bash.sh script, this error popped up:
image

Thus, I originally removed the cudatoolkit part of the bash.sh script and followed the rest of the instructions. This could've been what caused my issue with the illegal hardware instructions. However, that still doesn't fix the fact that I can't seem to be able to install cudatoolkit. When looking online, I think the reason for this is that Mac is no longer compatible with cuda. Any work arounds you can think of?

I also tried installing Rosetta and rerunning everything, but that produced the same result.

Sorry, no workarounds come to mind. You can try maybe running everything using a VM with Linux, or maybe try SSHing into a Linux machine. I'm sure there's a way to maybe get it to work on MacOS with the newer architectures, but this particular toolbox can't explicitly provide support for that due to a lack of resources.

Feel free to follow-up here with any workarounds you find or additional information, but given my previous answer, for now I'll close this issue to keep the issues listing a bit cleaner.