update readme

This commit is contained in:
Brett Kuprel 2022-07-01 19:02:49 -04:00
parent 2614a83f35
commit dc0d02a7a7

5
README.md vendored
View File

@ -17,6 +17,9 @@ $ pip install min-dalle
### Usage ### Usage
#### Command Line
Use the python script `image_from_text.py` to generate images from the command line. Use the python script `image_from_text.py` to generate images from the command line.
```bash ```bash
@ -29,6 +32,8 @@ $ python image_from_text.py --text='court sketch of godzilla on trial' --mega
``` ```
![Godzilla Trial](examples/godzilla_on_trial.png) ![Godzilla Trial](examples/godzilla_on_trial.png)
#### Python
To load a model once and generate multiple times, first initialize `MinDalleTorch` To load a model once and generate multiple times, first initialize `MinDalleTorch`
```python ```python