fix readme
This commit is contained in:
parent
f1f433048c
commit
8f58a51a7d
4
README.md
vendored
4
README.md
vendored
|
@ -29,7 +29,7 @@ $ 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)
|
||||||
|
|
||||||
To load a model once and generate multiple times, initialize `MinDalleTorch`, then call `generate_image` with some text and a seed.
|
To load a model once and generate multiple times, first initialize `MinDalleTorch`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from min_dalle import MinDalleTorch
|
from min_dalle import MinDalleTorch
|
||||||
|
@ -41,6 +41,8 @@ model = MinDalleTorch(
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
then call `generate_image` with some text and a seed as many times as you like
|
||||||
|
|
||||||
```python
|
```python
|
||||||
image = model.generate_image("a comfy chair that looks like an avocado")
|
image = model.generate_image("a comfy chair that looks like an avocado")
|
||||||
display(image)
|
display(image)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user