Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about pytorch's version #8

Closed
KosumosuL opened this issue Jun 7, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@KosumosuL
Copy link

commented Jun 7, 2018

after changing the version of pytorch to 0.3.1
the following problem occurred:

Traceback (most recent call last):
  File "demo.py", line 128, in <module>
    netG = net.dehaze(inputChannelSize, outputChannelSize, ngf)
  File "/data2/zhangzhengxi4047/dcpdn.pytorch/DCPDN/dehaze22.py", line 540, in __init__
    self.tran_dense=Dense()
  File "/data2/zhangzhengxi4047/dcpdn.pytorch/DCPDN/dehaze22.py", line 411, in __init__
    haze_class = models.densenet121(pretrained=True)
  File "build/bdist.linux-x86_64/egg/torchvision/models/densenet.py", line 27, in densenet121
  File "build/bdist.linux-x86_64/egg/torchvision/models/densenet.py", line 213, in __init__
AttributeError: 'module' object has no attribute 'kaiming_normal_'

what should i do?

@KosumosuL

This comment has been minimized.

Copy link
Author

commented Jun 7, 2018

solved

@KosumosuL KosumosuL closed this Jun 7, 2018

@Neobe

This comment has been minimized.

Copy link

commented Jul 26, 2018

Hello,I meet the same problem,can you tell me how to solve this?

@KosumosuL

This comment has been minimized.

Copy link
Author

commented Jul 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.