2023-07-02 22:31:46 +09:00
2023-06-28 20:18:56 +09:00
2023-06-28 20:19:54 +09:00
2023-07-02 22:31:46 +09:00
2023-06-20 22:24:19 +09:00
2023-06-28 20:18:56 +09:00
2023-06-27 22:25:32 +09:00
2023-06-18 16:49:17 +09:00
2023-06-28 20:18:56 +09:00

Stable Diffusion Modal

This is the script to execute Stable Diffusion on Modal.

Requirements

The app requires the following to run:

  • python: > 3.10
  • modal-client
  • A token for Modal.

The modal-client is the Python library. In order to install that:

pip install modal-client

And you need a modal token to use this script:

modal token new

Please see the documentation of Modal for modals and tokens.

Getting Started

To use the script, execute the below.

  1. git clone the repository.
  2. Create the .env file and set a huggingface API token and a model with reference to .env.example.
  3. Open the Makefile and set prompts.
  4. Execute make deploy command. An application will be deployed to Modal by the command.
  5. Execute make run command.

Images are generated and output to the outputs/ directory.

Thank you.

Author

Hoda

Description
This is a script for running Stable Diffusion on Modal.
Readme 13 MiB
Languages
Python 95.9%
Makefile 3%
Dockerfile 1.1%