Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,9 @@ embed_dim = 384
|
|
57 |
embed_out_dim = 256
|
58 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
59 |
|
|
|
|
|
|
|
60 |
# Path to your .pth file
|
61 |
gen_weight = 'generator_20240421_3.pth'
|
62 |
|
|
|
57 |
embed_out_dim = 256
|
58 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
59 |
|
60 |
+
generator = Generator(channels=3, embed_dim=embed_dim, noise_dim=noise_dim, embed_out_dim=embed_out_dim).to(device)
|
61 |
+
|
62 |
+
|
63 |
# Path to your .pth file
|
64 |
gen_weight = 'generator_20240421_3.pth'
|
65 |
|