update readme

This commit is contained in:
Brett Kuprel 2022-07-03 16:26:49 -04:00
parent 6ce60179ff
commit 2661074589
2 changed files with 1 additions and 8 deletions

9
README.md vendored
View File

@ -33,16 +33,9 @@ model = MinDalle(is_mega=True, models_root='./pretrained')
The required models will be downloaded to `models_root` if they are not already there. Once everything has finished initializing, call `generate_image` with some text and a seed as many times as you want. The required models will be downloaded to `models_root` if they are not already there. Once everything has finished initializing, call `generate_image` with some text and a seed as many times as you want.
```python
text = 'a comfy chair that looks like an avocado'
image = model.generate_image(text)
display(image)
```
<img src="https://github.com/kuprel/min-dalle/raw/main/examples/avocado_armchair.png" alt="drawing" width="200"/>
```python ```python
text = 'Dali painting of WallE' text = 'Dali painting of WallE'
image = model.generate_image(text, seed=0, grid_size=3) image = model.generate_image(text, seed=0, grid_size=4)
display(image) display(image)
``` ```
<img src="https://github.com/kuprel/min-dalle/raw/main/examples/dali_walle.png" alt="drawing" width="300"/> <img src="https://github.com/kuprel/min-dalle/raw/main/examples/dali_walle.png" alt="drawing" width="300"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB