Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cene555 authored Nov 23, 2022
1 parent c0b8efc commit 765dc7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ images = model.generate_text2img('кошка', batch_size=4, h=512, w=512, num_s
```
## 2. img2img
```python
from natalle.natalle_model import Natalle
from kandinsky2 import get_kandinsky2
from PIL import Image

model = Natalle('inference.yaml', 'natalle.pt', 'cuda', task_type='img2img')
model = get_kandinsky2('cuda', task_type='text2img')
init_image = Image.open('image.jpg')
images = model.generate_img2img('a photo of realistic landscape', init_image, strength=0.6)
images = model.generate_img2img('кошка', init_image, strength=0.8, num_steps=50, denoised_type='dynamic_threshold', dynamic_threshold_v=99.5, sampler='ddim_sampler', ddim_eta=0.05, guidance_scale=10)
```
## 3. inpainting
```python
Expand Down

0 comments on commit 765dc7c

Please sign in to comment.