update readme
This commit is contained in:
parent
c199507a7a
commit
27642edbe6
2
README.md
vendored
2
README.md
vendored
|
@ -36,7 +36,7 @@ model = MinDalle(
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
The required models will be downloaded to `models_root` if they are not already there. If you have an Ampere architecture GPU you can set the `dtype=torch.bfloat16` and save GPU memory. There is still an issue with `torch.float16` that needs to be sorted out. Once everything has finished initializing, call `generate_image` with some text as many times as you want. Use a positive `seed` for reproducible results. Higher values for `log2_supercondition_factor` result in better agreement with the text but a narrower variety of generated images. Every image token is sampled from the top-$k$ most probable tokens.
|
The required models will be downloaded to `models_root` if they are not already there. Set the `dtype` to `torch.float16` to save GPU memory. If you have an Ampere architecture GPU you can use `torch.bfloat16`. Once everything has finished initializing, call `generate_image` with some text as many times as you want. Use a positive `seed` for reproducible results. Higher values for `log2_supercondition_factor` result in better agreement with the text but a narrower variety of generated images. Every image token is sampled from the top-$k$ most probable tokens.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
image = model.generate_image(
|
image = model.generate_image(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user