microsoft / microsoft/TRELLIS

Any plan to support in MacOS

Open
#303 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.7k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I got

(trellis) zhuzhirui@Mac TRELLIS % python example_text.py                                                                                                                      

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/Users/zhuzhirui/vscodeworkspace/TRELLIS/example_text.py", line 8, in <module>
    from trellis.pipelines import TrellisTextTo3DPipeline
  File "/Users/zhuzhirui/vscodeworkspace/TRELLIS/trellis/__init__.py", line 3, in <module>
    from . import pipelines
  File "/Users/zhuzhirui/vscodeworkspace/TRELLIS/trellis/pipelines/__init__.py", line 1, in <module>
    from . import samplers
  File "/Users/zhuzhirui/vscodeworkspace/TRELLIS/trellis/pipelines/samplers/__init__.py", line 2, in <module>
    from .flow_euler import FlowEulerSampler, FlowEulerCfgSampler, FlowEulerGuidanceIntervalSampler
  File "/Users/zhuzhirui/vscodeworkspace/TRELLIS/trellis/pipelines/samplers/flow_euler.py", line 2, in <module>
    import torch
  File "/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/__init__.py", line 1477, in <module>
    from .functional import *  # noqa: F403
  File "/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/functional.py", line 9, in <module>
    import torch.nn.functional as F
  File "/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/nn/__init__.py", line 1, in <module>
    from .modules import *  # noqa: F403
  File "/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/nn/modules/__init__.py", line 35, in <module>
    from .transformer import TransformerEncoder, TransformerDecoder, \
  File "/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/nn/modules/transformer.py", line 20, in <module>
    device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),
/opt/anaconda3/envs/trellis/lib/python3.9/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
  device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),

as many dependencies are not available, I just install some of the package, and try to down-grade some dependencies according to the error message, but it didn't work.

conda create -n trellis python=3.9 -y
conda activate trellis

pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

pip install numpy==1.23.5 opencv-python==4.5.5.64

pip install pillow==9.5.0 imageio==2.31.5 tqdm==4.66.1 easydict==1.13 scipy==1.11.1

pip install imageio-ffmpeg opencv-python-headless ninja rembg onnxruntime trimesh open3d xatlas pyvista pymeshfix igraph transformers
pip install git+https://github.com/EasternJournalist/utils3d.git@9a4eb15e4021b67b12c460c7057d642626897ec8
pip install gradio==4.44.1 gradio_litmodel3d==0.0.1

Any plan for MacOS, or suggestion to right dependency version will help, Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the import failure from example_text.py in the reported Python 3.9 environment, starting with the torch import path through trellis/pipelines/samplers/flow_euler.py. Compare the listed dependency versions and determine whether a supported macOS installation path exists; document the confirmed compatibility outcome or the remaining unsupported requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, numpy, opencv, python, pytorch
Domain
build-system, machine-learning, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.