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

Support macOS #20

Open
mgierschdev opened this issue Aug 30, 2024 · 9 comments
Open

Support macOS #20

mgierschdev opened this issue Aug 30, 2024 · 9 comments

Comments

@mgierschdev
Copy link

Hello, any plans to support the model in macOS ? or convert the model to ml core or similar ?

thanks,

@AA-Developer
Copy link

hi
I don't have a Mac OS but I think it will work fine because it's based on Tensor.
Are you getting errors when running?

@mgierschdev
Copy link
Author

Yes, I am getting:
Collecting xformers==0.0.23.post1 (from -r requirements.txt (line 3))
Downloading xformers-0.0.23.post1.tar.gz (3.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 7.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/q1/2fhjcsbj38x6jvg_hkldqflw0000gn/T/pip-install-4i0pfk04/xformers_bcb3bffcd7b343b0969f7861bed49b64/setup.py", line 23, in
import torch
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

@AA-Developer
Copy link

It's a problem because Install requirements.txt to run the model.
First you need to create an environment using conda
Because it seems that you did not do that or that you did that and did not activate it
git clone https://github.com/360CVGroup/FancyVideo.git cd FancyVideo conda create -n fancyvideo python=3.10 conda activate fancyvideo pip install -r requirements.txt

If this does not work for you, create an environment using Python, but make sure to use the version 3.10
Run this code in the root of the application (FancyVideo/).
c:\users\ben\appdata\local\programs\python\python310\python.exe -m venv myenv
myenv\Scripts\activate
Change the path to the path in your system.
c:\users\ben\appdata\local\programs\python\python310\python.exe
If it doesn't work you can use the general manual installation.
When an error like this appears, it says that you need to install the mentioned package. Install it manually using the command
ModuleNotFoundError: No module named 'torch'
pip install torch

@mgierschdev
Copy link
Author

Did that,
now I am getting
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton

@AA-Developer
Copy link

This is due to different version compatibility.
Which environment are you using now? Anaconda or Python

@mgierschdev
Copy link
Author

anaconda

@AA-Developer
Copy link

AA-Developer commented Aug 30, 2024

try this
https://github.com/AA-Developer/FancyVideo/tree/fix
If you have the original installation :
Download the file
app.py
Put it in the root
/
Download the two files
i2v_ui.yaml
t2v_ui.yaml
From the path
configs/inference
https://github.com/AA-Developer/FancyVideo/tree/fix/configs/inference
then run : python app.py
go to : 127.0.0.1:7860

@mgierschdev
Copy link
Author

so it seems one of the dependencies xformers does not support macOS

@mgierschdev
Copy link
Author

maybe I can run it in a google colab, I am interested in using the model image-to-video

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

2 participants