Danial-Kord / DigiHuman

Automatic 3D Character animation using Pose Estimation and Landmark Generation techniques
GNU General Public License v3.0
444 stars 72 forks source link

Support of Apple Chipset? #16

Open mihui opened 1 year ago

mihui commented 1 year ago

Hi there,

I am wondering if this project can support the Apple CPU? Here are the problems I get:

  1. mediapipe package is not officially support which may not be your problem
  2. warnings package is not supported: I removed it from the code and requirements.txt, which is also fine
  3. python server.py caused errors, this maybe cause by the opencv
    objc[1834]: Class CaptureDelegate is implemented in both /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.abi3.so (0x121fb25a0) and /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mediapipe/.dylibs/libopencv_videoio.3.4.16.dylib (0x122d30860). One of the two will be used. Which one is undefined.
    objc[1834]: Class CVWindow is implemented in both /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.abi3.so (0x121fb25f0) and /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x116620a68). One of the two will be used. Which one is undefined.
    objc[1834]: Class CVView is implemented in both /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.abi3.so (0x121fb2618) and /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x116620a90). One of the two will be used. Which one is undefined.
    objc[1834]: Class CVSlider is implemented in both /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.abi3.so (0x121fb2640) and /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x116620ab8). One of the two will be used. Which one is undefined.
    Traceback (most recent call last):
    File "/Users/nobody/Documents/Projects/playground/DigiHuman/Backend/server.py", line 122, in <module>
    app = Flask(__name__)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 558, in __init__
    self.add_url_rule(
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 66, in wrapper_func
    return f(self, *args, **kwargs)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/flask/app.py", line 1216, in add_url_rule
    self.url_map.add(rule)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/werkzeug/routing.py", line 1562, in add
    rule.bind(self)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/werkzeug/routing.py", line 711, in bind
    self.compile()
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/werkzeug/routing.py", line 767, in compile
    self._build = self._compile_builder(False)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/werkzeug/routing.py", line 1128, in _compile_builder
    return self.BuilderCompiler(self).compile(append_unknown)
    File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/werkzeug/routing.py", line 1119, in compile
    co = types.CodeType(*code_args)
    TypeError: code() takes at least 14 arguments (13 given)