Skip to content

Commit

Permalink
Merge pull request #1 from qsun1/qsun1-patch-1
Browse files Browse the repository at this point in the history
fix a bug in stylegan2_generator.py
  • Loading branch information
qsun1 authored Jul 25, 2023
2 parents 3f1df30 + 3cc5f96 commit af04744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmagic/models/editors/stylegan2/stylegan2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def forward(self,
img = skip.to(torch.float32)

if self.bgr2rgb:
img = torch.flip(img, dims=1)
img = torch.flip(img, dims=[1])

if return_latents or return_noise:
output_dict = dict(
Expand Down

0 comments on commit af04744

Please sign in to comment.