【犀牛鸟实战issue】 macOS support with custom_rasterizer for CPU #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
【问题描述】目前代码环境配置都是在CUDA环境中,如何在macos中运行Hunyuan3D-2.1
【期望改进】在macos中运行Hunyuan3D-2.1
【完成方式】给出环境配置文档和代码
Summary of Changes
Added
README_for_apple_silicon.md
with setup instructions for Apple Silicon.Added
demo_for_apple_silicon.py
as a usage example on Apple M-series chips.Added
device
parameter togradio_app.py
for hardware flexibility.Added
compile_mesh_painter_for_apple_silicon.sh
script for compiling on Apple Silicon.Introduced new CPU-specific scripts for building
custom_rasterizer
:grid_neighbor_cpu.cpp
rasterizer_cpu.cpp
rasterizer_cpu.h
setup.py
Added
device
parameter totextureGenPipeline.py
.Added new parameter
face_count
insimplify_mesh_utils.py
, compatible with the latesttrimesh
version. Because the trimesh==4.4.7 could not work on MacOS.Added
requirements_for_apple_silicon.txt
for 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
Hunyuan3DPaintPipeline
on CPU is significantly slower. It is recommended to either:Hunyuan3DPaintPipeline
on a GPU for better performance.