Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,6 @@ class SpriteGenerator(nn.Module):
|
|
53 |
nn.BatchNorm2d(16),
|
54 |
nn.ReLU(True),
|
55 |
|
56 |
-
# Layers finali modificati per corrispondere esattamente ai pesi
|
57 |
nn.ConvTranspose2d(16, 3, 4, 2, 1, bias=False), # -> 3 x 512 x 512
|
58 |
nn.BatchNorm2d(3),
|
59 |
nn.ReLU(True),
|
@@ -62,6 +61,10 @@ class SpriteGenerator(nn.Module):
|
|
62 |
nn.BatchNorm2d(3),
|
63 |
nn.ReLU(True),
|
64 |
|
|
|
|
|
|
|
|
|
65 |
nn.Conv2d(3, 3, 3, 1, 1, bias=True) # Convoluzione finale
|
66 |
)
|
67 |
|
|
|
53 |
nn.BatchNorm2d(16),
|
54 |
nn.ReLU(True),
|
55 |
|
|
|
56 |
nn.ConvTranspose2d(16, 3, 4, 2, 1, bias=False), # -> 3 x 512 x 512
|
57 |
nn.BatchNorm2d(3),
|
58 |
nn.ReLU(True),
|
|
|
61 |
nn.BatchNorm2d(3),
|
62 |
nn.ReLU(True),
|
63 |
|
64 |
+
nn.Conv2d(3, 3, 3, 1, 1, bias=True), # Seconda convoluzione di rifinitura
|
65 |
+
nn.BatchNorm2d(3),
|
66 |
+
nn.ReLU(True),
|
67 |
+
|
68 |
nn.Conv2d(3, 3, 3, 1, 1, bias=True) # Convoluzione finale
|
69 |
)
|
70 |
|