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

Wrong Layer Choosen for SSD from MobilenetV2 backbone #27

Open
prateethvnayak opened this issue Aug 20, 2019 · 2 comments
Open

Wrong Layer Choosen for SSD from MobilenetV2 backbone #27

prateethvnayak opened this issue Aug 20, 2019 · 2 comments

Comments

@prateethvnayak
Copy link

The line here corresponds to the 12th block output.

The correct replacement for it is
FeatureExtractor = Model(inputs=mobilenetv2.input, outputs=mobilenetv2.get_layer('block_12_add').output)

@wyjeong
Copy link

wyjeong commented Nov 7, 2019

@prateethvnayak Thanks, your modification works. By the way, didn't you face this problem when you train your model?

InvalidArgumentError: 2 root error(s) found.
  (0) Invalid argument: Incompatible shapes: [16,7308,4] vs. [16,1692,4]
	 [[{{node loss/predictions_loss/sub}}]]
	 [[loss/mul/_3917]]
  (1) Invalid argument: Incompatible shapes: [16,7308,4] vs. [16,1692,4]
	 [[{{node loss/predictions_loss/sub}}]]
0 successful operations.
0 derived errors ignored.

@prateethvnayak
Copy link
Author

@wyjeong No, did you make some changes ? it seems to be an error in the loss module. I cannot comment more without looking at your code

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