alievk / avatarify-python

Avatars for Zoom, Skype and other video-conferencing apps.
Other
16.21k stars 3.94k forks source link

Apple Silicon? #637

Open aleksandr-shevchenko-0 opened 1 year ago

aleksandr-shevchenko-0 commented 1 year ago

Is there any way to run avatarify on M1 Chip?

Now I receive this error on start:

[1691005353.409407] Loading Predictor
[1691005353.619822] Receiving from tcp://4.tcp.eu.ngrok.io:12260
2023-08-02 23:42:34.454 python[90195:8022461] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist, 0x0106): tried: '/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
2023-08-02 23:42:34.454 python[90195:8022461] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist, 0x0106): tried: '/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

=== Control keys ===
1-9: Change avatar
1: einstein.jpg
2: eminem.jpg
3: jobs.jpg
4: mona.jpg
5: obama.jpg
6: potter.jpg
7: ronaldo.png
8: schwarzenegger.png
W: Zoom camera in
S: Zoom camera out
A: Previous avatar in folder
D: Next avatar in folder
Q: Get random avatar
X: Calibrate face pose
I: Show FPS
ESC: Quit

Full key list: https://github.com/alievk/avatarify#controls

[1691005357.398360] stopping camera
[1691005357.441735] stopping remote predictor
[1691005358.246894] recv_worker exit
[1691005358.275132] main: exit
JohanAR commented 1 year ago

Avatarify-python has not been actively developed in a long time afaik. It seems like newer versions of PyTorch might support M1 chip, so it shouldn't be impossible to implement if you want to try updating it.

SanPatrick01 commented 1 year ago

Avatarify-python has not been actively developed in a long time afaik. It seems like newer versions of PyTorch might support M1 chip, so it shouldn't be impossible to implement if you want to try updating it.

How do I fix for rtx 4070

Elektrobotcdp commented 10 months ago

Is there any way to run avatarify on M1 Chip?

Now I receive this error on start:

[1691005353.409407] Loading Predictor
[1691005353.619822] Receiving from tcp://4.tcp.eu.ngrok.io:12260
2023-08-02 23:42:34.454 python[90195:8022461] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist, 0x0106): tried: '/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
2023-08-02 23:42:34.454 python[90195:8022461] Error loading /Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist:  dlopen(/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist, 0x0106): tried: '/Library/CoreMediaIO/Plug-Ins/DAL/CamTwist.plugin/Contents/MacOS/CamTwist' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

=== Control keys ===
1-9: Change avatar
1: einstein.jpg
2: eminem.jpg
3: jobs.jpg
4: mona.jpg
5: obama.jpg
6: potter.jpg
7: ronaldo.png
8: schwarzenegger.png
W: Zoom camera in
S: Zoom camera out
A: Previous avatar in folder
D: Next avatar in folder
Q: Get random avatar
X: Calibrate face pose
I: Show FPS
ESC: Quit

Full key list: https://github.com/alievk/avatarify#controls

[1691005357.398360] stopping camera
[1691005357.441735] stopping remote predictor
[1691005358.246894] recv_worker exit
[1691005358.275132] main: exit

Message @Qxchan on Telegram for issue solve on AVATARIFY