Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run_train.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved


from math import dist
# from math import dist
import sys
import os
import click
Expand Down
2 changes: 1 addition & 1 deletion training/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run_G(self, z, c, sync, img=None, mode=None, get_loss=True):

elif (generator_mode == 'random_z_random_c') or (generator_mode == 'random_z_image_c'):
with misc.ddp_sync(self.G_mapping, sync):
ws = self.G_mapping(z, c)
ws = self.G_mapping(z, c).clone()
if self.style_mixing_prob > 0:
with torch.autograd.profiler.record_function('style_mixing'):
cutoff = torch.empty([], dtype=torch.int64, device=ws.device).random_(1, ws.shape[1])
Expand Down