Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix typo.
  • Loading branch information
cabralpinto committed Aug 28, 2023
1 parent 89514bd commit 2296061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pip install modular-diffusion
With Modular Diffusion, you can build and train a custom Diffusion Model in just a few lines. First, load and normalize your dataset. We are using the dog pictures from [AFHQ](https://paperswithcode.com/dataset/afhq).

```python
x, _ = zip(*ImageFolder(str(input), ToTensor()))
x, _ = zip(*ImageFolder("afhq", ToTensor()))
x = resize(x, [h, w], antialias=False)
x = torch.stack(x) * 2 - 1
```
Expand Down

0 comments on commit 2296061

Please sign in to comment.