【犀牛鸟实战issue】 macOS support with custom_rasterizer for CPU#124
【犀牛鸟实战issue】 macOS support with custom_rasterizer for CPU#124liangxg787 wants to merge 7 commits intoTencent-Hunyuan:mainfrom
Conversation
…r apple silicon; 3, Add demo for apple silicon; 4, add readme for apple silicon.
…le silicon; 3, Refine the requirements and readme
|
Can you tell me what Python version you're running to build this because I can't find release which satisfies both scipy 1.14.1 and bpy 4.0 |
Python 3.10.18 |
|
Then something has changed requirements since you made this pull request. The following was captured from 3.10.18 ERROR: Ignored the following versions that require a different python version: 1.16.0 Requires-Python >=3.11; 1.16.0rc1 Requires-Python >=3.11; 1.16.0rc2 Requires-Python >=3.11; 1.16.1 Requires-Python >=3.11; 1.16.2 Requires-Python >=3.11; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 2.3.0 Requires-Python >=3.11; 2.3.1 Requires-Python >=3.11; 2.3.2 Requires-Python >=3.11; 2.3.3 Requires-Python >=3.11; 2.3.4 Requires-Python >=3.11
ERROR: Could not find a version that satisfies the requirement bpy==4.0 (from versions: none)
ERROR: No matching distribution found for bpy==4.0There is no available overlap between the python versions required by scipy and bpy. |
I think you can try to remove the version number and then install scipy and bpy. |
|
After removing the pinned version numbers I was able to install with 3.11.13 as scipy wants a higher version than 13.10 now. I did get a segmentation fault on an M2 with 32GB though which came as a surprise. |
【问题描述】目前代码环境配置都是在CUDA环境中,如何在macos中运行Hunyuan3D-2.1
【期望改进】在macos中运行Hunyuan3D-2.1
【完成方式】给出环境配置文档和代码
Summary of Changes
Added
README_for_apple_silicon.mdwith setup instructions for Apple Silicon.Added
demo_for_apple_silicon.pyas a usage example on Apple M-series chips.Added
deviceparameter togradio_app.pyfor hardware flexibility.Added
compile_mesh_painter_for_apple_silicon.shscript for compiling on Apple Silicon.Introduced new CPU-specific scripts for building
custom_rasterizer:grid_neighbor_cpu.cpprasterizer_cpu.cpprasterizer_cpu.hsetup.pyAdded
deviceparameter totextureGenPipeline.py.Added new parameter
face_countinsimplify_mesh_utils.py, compatible with the latesttrimeshversion. Because the trimesh==4.4.7 could not work on MacOS.Added
requirements_for_apple_silicon.txtfor environment setup on Apple Silicon.Testing
Notes
If you encounter a segmentation fault, it might be due to insufficient RAM on macOS.
Running the rasterizer in
Hunyuan3DPaintPipelineon CPU is significantly slower. It is recommended to either:Hunyuan3DPaintPipelineon a GPU for better performance.