Phase 5 preparation
This commit is contained in:
@@ -276,8 +276,8 @@ def train_wgan(
|
|||||||
ema = EMA(generator, decay=ema_decay)
|
ema = EMA(generator, decay=ema_decay)
|
||||||
|
|
||||||
if hasattr(torch, "compile"):
|
if hasattr(torch, "compile"):
|
||||||
|
# critic excluded — GP requires double backward which torch.compile doesn't support
|
||||||
generator = torch.compile(generator)
|
generator = torch.compile(generator)
|
||||||
critic = torch.compile(critic)
|
|
||||||
|
|
||||||
# Fixed noise for consistent sample tracking across epochs
|
# Fixed noise for consistent sample tracking across epochs
|
||||||
fixed_noise = torch.randn(16, latent_dim, 1, 1, device=device)
|
fixed_noise = torch.randn(16, latent_dim, 1, 1, device=device)
|
||||||
|
|||||||
Reference in New Issue
Block a user