Closed filipejunqueira closed 3 years ago
Just to clarify I get the output above repeatedly after running python3 fake.py.
I'm also getting the same errors as filipejunqueria
I have v4l2loopback installed, and have a 'video2' in /dev/
Same issue.
I had the same issue - but fixed it by removing the node_modules
folder under bodypix
, then did a npm install
.
It warned me that there were some fixes necessary, so I ran npm audit fix --force
, and that seemed to fix the error.
@pezhore That worked!! Thank you so much!
I had the same issue - but fixed it by removing the
node_modules
folder underbodypix
, then did anpm install
.It warned me that there were some fixes necessary, so I ran
npm audit fix --force
, and that seemed to fix the error.
Do you reckon this needs to be patched?
Hi @fangfufu I think it does (IMO). Without @pezhore comment I would still be stuck. I had no idea that was the problem and I'm still unsure of what really happenend, only that this worked! :-)
I had the same issue. I realized it was a tensor installation issue and tried npm install
after removing node_modules
, but I did not realize we needed the newest major versions of @tensorflow/tfjs
, @tensorflow/tfjs-node-gpu
, and @tensorflow/tfjs-node
.
I had the same issue - but fixed it by removing the
node_modules
folder underbodypix
, then did anpm install
.It warned me that there were some fixes necessary, so I ran
npm audit fix --force
, and that seemed to fix the error.
This definitely fixed the problem! Thanks! After this I successfully run it on Debian/Bullseye.
Just to clarify the subject of this thread since I think it is a little bit misleading. The socket connection of fake.py
fails because the bodypix app fails and thus in turn closes the socket. So the primary error message is UnhandledPromiseRejectionWarning: TypeError: forwardFunc is not a function
of bodypix
because of some kind of version mismatch of Tensorflow in the node installation.
Can't this be fixed by simply updating the version string in bodypix/package.json
@lawa42 please suggest a patch.
Just update the dependencies in package.json... you don't need a patch file for that, just update the dependencies
https://github.com/fangfufu/Linux-Fake-Background-Webcam/blob/master/bodypix/package.json#L5-L7 Update them to the latest versions
@ShayBox to which version?
The latest versions. https://www.npmjs.com/search?q=tensorflow
@ShayBox , it is done. if it breaks, we know who to blame. ;)
It was broken already, that's the fix, The command npm audit fix --force
just updates the dependencies to the latest ones without any reported security vulnerabilities
@ShayBox @lawa42 @filipejunqueira Please checkout the latest commit. I got rid off Bodypix. Node.js is no longer required.
Hi fangfufu, thanks for the recent update. It works like a charm with twice the frame rate. Excellent work
Hi, sorry to troubleshoot this here but I can't seem to find what seems to be the issue with this. I have both akvcam and v4l2loopback installed. I get the same timeout message with either
python3 fake.py
orpython3 fake.py --akvcam
I'm somewhat new in the linux enviroment. With that said, I think for some reason I can't connect to the 127.0.0.1:9000 for some reason. I checked if 9000 is in use bysudo netstat -tulpn | grep LISTEN
and I don't see port 9000 in the list.Bellow is my output:
I'm getting the following message after running
node app.js
:And I'm also getting the following message after running
python3 fake.py
: