Commit
·
8dfebb7
1
Parent(s):
7412750
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
Training notebook: https://colab.research.google.com/drive/16o1TdrxnQ54Msbr813XfPVsnEt2QTRAa?usp=sharing
|
| 4 |
|
|
@@ -6,9 +17,9 @@ Inference notebook: https://colab.research.google.com/drive/1e7dR2dptM8F1xhRcyy-
|
|
| 6 |
|
| 7 |
Please credit if you use this, and feedback on the code is welcomed :)
|
| 8 |
|
| 9 |
-
Demo:
|
| 10 |
|
| 11 |
-
from lightweight_gan import Generator
|
| 12 |
import torch
|
| 13 |
from matplotlib import pyplot as plt
|
| 14 |
from huggingface_hub import PyTorchModelHubMixin
|
|
@@ -31,4 +42,4 @@ ims = gan_new(torch.randn(n_rows**2, 256)).clamp_(0., 1.)
|
|
| 31 |
fig, axs = plt.subplots(n_rows, n_rows, figsize=(9, 9))
|
| 32 |
for i, ax in enumerate(axs.flatten()):
|
| 33 |
ax.imshow(ims[i].permute(1, 2, 0).detach().cpu().numpy())
|
| 34 |
-
plt.tight_layout()
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- lightweightgan
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
datasets:
|
| 7 |
+
- johnowhitaker/glid3_orbs
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# orbgan
|
| 11 |
+
|
| 12 |
+
lightweight GAN trained on my glid-3 orbs for demo I'm working on.
|
| 13 |
|
| 14 |
Training notebook: https://colab.research.google.com/drive/16o1TdrxnQ54Msbr813XfPVsnEt2QTRAa?usp=sharing
|
| 15 |
|
|
|
|
| 17 |
|
| 18 |
Please credit if you use this, and feedback on the code is welcomed :)
|
| 19 |
|
| 20 |
+
## Demo:
|
| 21 |
|
| 22 |
+
```from lightweight_gan import Generator
|
| 23 |
import torch
|
| 24 |
from matplotlib import pyplot as plt
|
| 25 |
from huggingface_hub import PyTorchModelHubMixin
|
|
|
|
| 42 |
fig, axs = plt.subplots(n_rows, n_rows, figsize=(9, 9))
|
| 43 |
for i, ax in enumerate(axs.flatten()):
|
| 44 |
ax.imshow(ims[i].permute(1, 2, 0).detach().cpu().numpy())
|
| 45 |
+
plt.tight_layout()```
|