-
Notifications
You must be signed in to change notification settings - Fork 41
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
3D fcnn #68
base: master
Are you sure you want to change the base?
3D fcnn #68
Conversation
Updated fcnn blocks with 3D versions. I am wondering if separate 3D versions of fcnns should be created or if existing fcnns should be updated with ndim arg in fcnn.py.
Thank you, Tommy. I think 3D convolutions can be simply used as drop-ins. Can you please write it in a more compact way, without if/else? For example, def get_conv(dim: int) -> Type[nn.Module]:
conv_dict = {1: nn.Conv1d, 2: nn.Conv2d, 3: nn.Conv3d}
return conv_dict[dim] PS. Not sure whether List is a correct type annotation for **kwargs. |
I am not sure what output type I should put for the type annotation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tommycwong I think you need to define get_conv and get_BatchNorm (and also MaxPool?) only once, outside of all classes, and then just call those functions from each class.
nn.Module |
Updated fcnn blocks with 3D versions. I am wondering if separate 3D versions of fcnns should be created or if existing fcnns should be updated with ndim arg in fcnn.py.