mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2026-01-06 02:04:19 +01:00
allows one to shortcut sampling at a specific unet number, if one were to be training in stages
This commit is contained in:
@@ -783,7 +783,7 @@ for unet_number in (1, 2):
|
||||
# you can sample from the exponentially moving averaged unets as so
|
||||
|
||||
mock_image_embed = torch.randn(4, 512).cuda()
|
||||
images = decoder.sample(mock_image_embed, text = text) # (4, 3, 256, 256)
|
||||
images = decoder_trainer.sample(mock_image_embed, text = text) # (4, 3, 256, 256)
|
||||
```
|
||||
|
||||
## CLI (wip)
|
||||
|
||||
Reference in New Issue
Block a user