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

I have a priblem about using class BottleneckWithConcat(Bottleneck)! #3

Open
monk42 opened this issue Apr 16, 2019 · 2 comments
Open

Comments

@monk42
Copy link

monk42 commented Apr 16, 2019

Traceback (most recent call last):
File "/usr/lib/python3.5/code.py", line 91, in runcode
exec(code, self.locals)
File "", line 1, in
File "/home/monk42/Downloads/pycharm-2018.3/helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/home/monk42/Downloads/pycharm-2018.3/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/monk42/PycharmProjects/DDnet/model/Light_Net_beta.py", line 221, in
fetch="linear")
File "/home/monk42/PycharmProjects/DDnet/model/Light_Net_beta.py", line 174, in init
fetch=fetch)
File "/home/monk42/PycharmProjects/DDnet/model/Light_Net_beta.py", line 110, in init
unit = BottleneckWithConcat(nChannels, growthRate, dropRate)
File "/home/monk42/PycharmProjects/DDnet/model/Light_Net_beta.py", line 51, in init
super(Bottleneck, self).init(nChannels, growthRate, dropRate)
File "/home/monk42/.local/lib/python3.5/site-packages/torch/nn/modules/container.py", line 52, in init
self.add_module(str(idx), module)
File "/home/monk42/.local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 171, in add_module
torch.typename(module)))
TypeError: int is not a Module subclass

@Lyken17
Copy link
Owner

Lyken17 commented Apr 16, 2019

Might be caused by pytorch api changes. I'll have a look today.

@monk42
Copy link
Author

monk42 commented Apr 17, 2019

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants