NVlabs / stylegan2-ada-pytorch

StyleGAN2-ADA - Official PyTorch implementation
https://arxiv.org/abs/2006.06676
Other
4k stars 1.15k forks source link

padding #271

Open aRavanel opened 1 year ago

aRavanel commented 1 year ago

in the fallback code of upfirdn2d.py there is :

padding = [padx, padx, pady, pady]
padx0, padx1, pady0, pady1 = padding

in another repo (https://github.com/rosinality/stylegan2-pytorch/blob/master/op/upfirdn2d.py) there is :

if len(pad) == 2:
        pad = (pad[0], pad[1], pad[0], pad[1])

seems the order is not the same (and i had a dimension error when upsampling here). Maybe a mistake?

Y-markose commented 1 year ago

Its okey a will do it

Le mer. 4 janv. 2023 à 10:40, aRavanel @.***> a écrit :

in the fallback code of upfirdn2d.py there is :

padding = [padx, padx, pady, pady]padx0, padx1, pady0, pady1 = padding

in another repo ( https://github.com/rosinality/stylegan2-pytorch/blob/master/op/upfirdn2d.py) there is :

if len(pad) == 2: pad = (pad[0], pad[1], pad[0], pad[1])

seems the order is not the same (and i had a dimension error when upsampling here). Maybe a mistake?

— Reply to this email directly, view it on GitHub https://github.com/NVlabs/stylegan2-ada-pytorch/issues/271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR7HREEWJHIX3D2QRBMSV5DWQVASHANCNFSM6AAAAAATQSVWC4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>