You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it is common to define weight assignment function in initialization function. I guess the problem lies in the indentation of each line. Different editors modify the indent. Please try to open the file with notepad++and check the indentation at the beginning of each line.
Line24 and line 30 ,why are there two def ?
24------> def init_weights(self, init_type='normal', gain=0.02):
'''
initialize network's weights
init_type: normal | xavier | kaiming | orthogonal
https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/blob/9451e70673400885567d08a9e97ade2524c700d0/models/networks.py#L39
'''
30------> def _init_func(m):
classname = m.class.name
if classname.find('InstanceNorm2d') != -1:
The editor reports a lot of errors. Please tell me the correct way to run your code, Thank you.
The text was updated successfully, but these errors were encountered: