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

TypeError: __init__() missing 1 required positional argument: 'in_channels' #12

Open
izzatum opened this issue Oct 27, 2021 · 5 comments

Comments

@izzatum
Copy link

izzatum commented Oct 27, 2021

Hi! I tried to run iUNet tutorial on my machine. However, it failed and return a TypeError. TypeError: __init__() missing 1 required positional argument: 'in_channels'. Could you assist me with this?

Thanks!

@tianwen220
Copy link

have you slove this question? ,I also faced with this problem

@hmartelb
Copy link

hmartelb commented Aug 11, 2022

I was experiencing the same problem and this solution worked for me:

from iunets import iUNet
model = iUNet(
    in_channels=64,
    architecture=[2,2,2,2],
    dim=2
)
model.print_layout()

This example is in the branch called new_channel_interface, which is different from the one in the main branch.

Should the readme of the main branch be updated? or are you working on features that may conflict with the above example @cetmann ?

@tianwen220
Copy link

tianwen220 commented Aug 11, 2022 via email

@izzatum
Copy link
Author

izzatum commented Oct 11, 2022 via email

@tianwen220
Copy link

tianwen220 commented Oct 11, 2022 via email

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

3 participants