Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 935d940

Browse files
committed
fix
1 parent d8a7922 commit 935d940

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/leras/archis/DeepFakeArchi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def forward(self, x):
3939
return x
4040

4141
def get_out_ch(self):
42-
return (self.out_ch // 4) * 4
42+
return (self.out_ch // 4) * 4 if self.subpixel else self.out_ch
4343

4444
class DownscaleBlock(nn.ModelBase):
4545
def on_build(self, in_ch, ch, n_downscales, kernel_size, dilations=1, subpixel=True):
@@ -227,7 +227,7 @@ def forward(self, x):
227227
return x
228228

229229
def get_out_ch(self):
230-
return (self.out_ch // 4) * 4
230+
return (self.out_ch // 4) * 4 if self.subpixel else self.out_ch
231231

232232
class DownscaleBlock(nn.ModelBase):
233233
def on_build(self, in_ch, ch, n_downscales, kernel_size, dilations=1, subpixel=True):
@@ -359,7 +359,7 @@ def forward(self, x):
359359
return x
360360

361361
def get_out_ch(self):
362-
return (self.out_ch // 4) * 4
362+
return (self.out_ch // 4) * 4 if self.subpixel else self.out_ch
363363

364364
class DownscaleBlock(nn.ModelBase):
365365
def on_build(self, in_ch, ch, n_downscales, kernel_size, dilations=1, subpixel=True):

0 commit comments

Comments
 (0)