WASasquatch / easydiffusion

Easy Diffusion is an advanced Stable Diffusion Notebook with a feature rich image processing suite.
MIT License
103 stars 17 forks source link

Please install the `accelerate` library to use Diffusers with PyTorch #8

Open skribe opened 2 years ago

skribe commented 2 years ago

This began today.

ImportError                               Traceback (most recent call last)
[<ipython-input-2-c3af660a79a1>](https://localhost:8080/#) in <module>
   1797     raise e
   1798 except BaseException as e:
-> 1799     raise e
   1800 finally:
   1801     if CLEAR_SETUP_LOG: clear()

1 frames
[/usr/local/lib/python3.7/dist-packages/diffusers/__init__.py](https://localhost:8080/#) in <module>
     22 if is_torch_available() and not is_accelerate_available():
     23     error_msg = "Please install the `accelerate` library to use Diffusers with PyTorch. You can do so by running `pip install diffusers[torch]`. Or if torch is already installed, you can run `pip install accelerate`."  # noqa: E501
---> 24     raise ImportError(error_msg)
     25 
     26 

ImportError: Please install the `accelerate` library to use Diffusers with PyTorch. You can do so by running `pip install diffusers[torch]`. Or if torch is already installed, you can run `pip install accelerate`.

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
WASasquatch commented 2 years ago

Thank you for letting me know. I'll add that to the installation process.

Edit: accelerate install added

On Fri, Nov 4, 2022 at 2:18 AM skribe @.***> wrote:

This began today.

ImportError Traceback (most recent call last) in 1797 raise e 1798 except BaseException as e: -> 1799 raise e 1800 finally: 1801 if CLEAR_SETUP_LOG: clear()

1 frames /usr/local/lib/python3.7/dist-packages/diffusers/init.py in 22 if is_torch_available() and not is_accelerate_available(): 23 error_msg = "Please install the accelerate library to use Diffusers with PyTorch. You can do so by running pip install diffusers[torch]. Or if torch is already installed, you can run pip install accelerate." # noqa: E501 ---> 24 raise ImportError(error_msg) 25 26

ImportError: Please install the accelerate library to use Diffusers with PyTorch. You can do so by running pip install diffusers[torch]. Or if torch is already installed, you can run pip install accelerate.


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/easydiffusion/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZI2W6OKAOTGTOLHNILWGTIIDANCNFSM6AAAAAARW7GTKQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Sincerely, Jordan S. C. Thompson

skribe commented 2 years ago

Thank you.