Skip to content

Commit

Permalink
Fix the number of channels on shallow layers.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuse committed Sep 11, 2024
1 parent 12a005f commit c63f3f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/torch_wae/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ def __init__(self, s: int) -> None:

self.layers = nn.Sequential(
# --------------------
# shape: (1, 64, 64) -> (16, 32, 32)
# shape: (1, 64, 64) -> (8, 32, 32)
# --------------------
InvertedBottleneck(k=3, c_in=1, c_out=16 * s, stride=2),
InvertedBottleneck(k=3, c_in=1, c_out=8 * s, stride=2),
# --------------------
# shape: (16, 32, 32) -> (8, 32, 32)
# shape: (8, 32, 32) -> (12, 32, 32)
# --------------------
InvertedBottleneck(k=3, c_in=16 * s, c_out=8 * s, stride=1),
InvertedBottleneck(k=3, c_in=8 * s, c_out=8 * s, stride=1),
InvertedBottleneck(k=3, c_in=8 * s, c_out=12 * s, stride=1),
InvertedBottleneck(k=3, c_in=12 * s, c_out=12 * s, stride=1),
# --------------------
# shape: (8, 32, 32) -> (12, 16, 16)
# shape: (12, 32, 32) -> (12, 16, 16)
# --------------------
InvertedBottleneck(k=3, c_in=8 * s, c_out=12 * s, stride=2),
InvertedBottleneck(k=3, c_in=12 * s, c_out=12 * s, stride=2),
InvertedBottleneck(k=3, c_in=12 * s, c_out=12 * s, stride=1),
InvertedBottleneck(k=3, c_in=12 * s, c_out=12 * s, stride=1),
# --------------------
Expand Down

0 comments on commit c63f3f2

Please sign in to comment.