larsmaaloee / auxiliary-deep-generative-models

Deep generative models for semi-supervised learning.
MIT License
109 stars 28 forks source link

Running problem #4

Open Runkun-Lu opened 7 years ago

Runkun-Lu commented 7 years ago

Thank you for putting the code on the github, i meet some problems on the code, ImportError: cannot import name BatchNormLayer, and ImportError: cannot import name categorical_accuracy, the two from lasagne_extensions.layers, can you tell me how to solve it? Thank you

larsmaaloee commented 7 years ago

It is because you need the bleeding edge Lasagne version.

Runkun-Lu commented 7 years ago

Thank you, and when I update the edage lasagne version, the new problem on the sdgmssl.py 177 line is ValueError: shape must be a tuple of int and/or [int] ( from ReshapeLayer class), is it because the seed initial values? seed = np.random.randint(1, 2147462579) Thank you very much~

The error is: File "C:\ProgramData\Anaconda2\lib\site-packages\lasagne-0.2.dev1-py2.7.egg\lasagne\layers\shape.py", line 121, in init raise ValueError("shape must be a tuple of int and/or [int]")

ValueError: shape must be a tuple of int and/or [int]

Runkun-Lu commented 7 years ago

Thank you, and when I update the edage lasagne version, the new problem on the sdgmssl.py 177 line is ValueError: shape must be a tuple of int and/or [int] ( from ReshapeLayer class), is it because the seed initial values? seed = np.random.randint(1, 2147462579) Thank you very much~

The error is: File "C:\ProgramData\Anaconda2\lib\site-packages\lasagne-0.2.dev1-py2.7.egg\lasagne\layers\shape.py", line 121, in init raise ValueError("shape must be a tuple of int and/or [int]")

ValueError: shape must be a tuple of int and/or [int]‍

‍ ------------------ 原始邮件 ------------------ 发件人: "Lars Maaløe";notifications@github.com; 发送时间: 2017年3月28日(星期二) 下午3:57 收件人: "larsmaaloee/auxiliary-deep-generative-models"auxiliary-deep-generative-models@noreply.github.com; 抄送: "❤Celetics"983194327@qq.com; "Author"author@noreply.github.com; 主题: Re: [larsmaaloee/auxiliary-deep-generative-models] Running problem(#4)

It is because you need the bleeding edge Lasagne version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.