Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Fit DenseNet examples to Keras-2 #53

Conversation

junwei-pan
Copy link
Contributor

No description provided.

@ahundt
Copy link
Collaborator

ahundt commented Mar 28, 2017

keras-team/keras#6034 may be relevant. Also a much more complete version of these changes is in https://github.com/farizrahman4u/keras-contrib/pull/46/files#diff-7c92da79e0a644cc9e206dab6de13bab

@farizrahman4u
Copy link
Contributor

LGTM, thanks!

@farizrahman4u farizrahman4u merged commit fcd054f into keras-team:master Mar 28, 2017
Copy link
Collaborator

@ahundt ahundt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@farizrahman4u please revert this change. It is broken. See: a6c7c91#r108550331

My changes will be ready for review today which are a superset of these changes.

@@ -375,15 +376,16 @@ def __dense_block(x, nb_layers, nb_filter, growth_rate, bottleneck=False, dropou
x = __conv_block(x, growth_rate, bottleneck, dropout_rate, weight_decay)
x_list.append(x)

x = merge(x_list, mode='concat', concat_axis=concat_axis)
x1 = concatenate(x_list, axis=concat_axis)
Copy link
Collaborator

@ahundt ahundt Mar 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not good! then all the convolutions will be the same! it is essential that all the concatenation be on x, in other words all new instances of x1 are a bug.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically, this is the source of keras-team/keras#6034

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, interesting. So I should wait for this PR to be merged, right?

Copy link
Collaborator

@ahundt ahundt Mar 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this change both triggers an existing bug and adds a new one. Consider just utilizing/merging #46 it fixes everything mentioned here, and I'll be switching to concat calls once keras-team/keras#6034 or keras-team/keras#6035 is merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will take a look. Thanks.

junwei-pan added a commit that referenced this pull request Mar 29, 2017
@junwei-pan
Copy link
Contributor Author

@ahundt Has you code be merged? If yes, then we don't need the revert any more, right?

@ahundt
Copy link
Collaborator

ahundt commented Apr 11, 2017

@kemaswill I'm still waiting on review for #46

@junwei-pan
Copy link
Contributor Author

Got it.

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

Successfully merging this pull request may close these issues.

3 participants