Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble installing on Mac #134

Open
dfl opened this issue Mar 8, 2024 · 2 comments
Open

trouble installing on Mac #134

dfl opened this issue Mar 8, 2024 · 2 comments

Comments

@dfl
Copy link

dfl commented Mar 8, 2024

I had trouble installing on my Mac, but here's what I did to get it to work.

git clone https://github.com/cumulo-autumn/StreamDiffusion.git
cd StreamDiffusion
pip install .
git patch apply ignore_cuda_for_mac.patch

@brentkearney
Copy link

brentkearney commented Mar 17, 2024

For me, it's just: git apply ignore_cuda_for_mac.patch. Thanks for the tip!

But then what? Installation Steps 2 & 3 are to pick your Cuda version for PyTorch, and then Install TensorRT extension:

% python -m streamdiffusion.tools.install-tensorrt
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/brent/anaconda3/lib/python3.11/site-packages/streamdiffusion/tools/install-tensorrt.py", line 19, in <module>
    def install(cu: Optional[Literal["11", "12"]] = get_cuda_version_from_torch()):
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brent/anaconda3/lib/python3.11/site-packages/streamdiffusion/tools/install-tensorrt.py", line 16, in get_cuda_version_from_torch
    return torch.version.cuda.split(".")[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

@fbarretto
Copy link

fbarretto commented Apr 24, 2024

I've created this gist to help guide the setup and running the demos. Let me know if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants