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

how to use lambda layer rebulid the input? #53

Open
1183710222 opened this issue Jun 3, 2022 · 0 comments
Open

how to use lambda layer rebulid the input? #53

1183710222 opened this issue Jun 3, 2022 · 0 comments

Comments

@1183710222
Copy link

base_model = models.att_unet_2d((128, 128, 3), filter_num=[64, 128, 256, 512], n_labels=1,
stack_num_down=2, stack_num_up=2, activation='ReLU',
atten_activation='ReLU', attention='add', output_activation='Sigmoid',
batch_norm=True, pool=False, unpool=False,
backbone='VGG16', weights='imagenet',
freeze_backbone=True, freeze_batch_norm=True,
name='attunet')
print(base_model.summary()) out put params =10M
but I used the lambda layer and tried to rebuild this shape
like this
inp = Input(shape=(128, 128, N))
l1 = Conv2D(3, (1, 1))(inp) # map N channels data to 3 channels
out = base_model(l1)
model = Model(inp, out, name=base_model.name)
print(model.summary()) out put params = 6
why?I sincerely seek for your assistance .

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

1 participant