Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add EfficientNet encoder #73

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

Merged

Conversation

SiarheiFedartsou
Copy link
Contributor

Hi! Added EfficientNet encoder from here https://github.com/lukemelas/EfficientNet-PyTorch/tree/master/efficientnet_pytorch
Let me know if any changes needed.

from efficientnet_pytorch.utils import relu_fn, url_map, get_model_params
import torch.nn as nn
import torch
import segmentation_models_pytorch as smp
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this import?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just forgot to remove it after porting this code from my "external" implementation :) Fixed.

Comment on lines 44 to 47
'imagenet': {
'mean': [0.485, 0.456, 0.406],
'std': [0.229, 0.224, 0.225],
'url': url_map[encoder]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, add here:

'input_space': 'RGB',
'input_range': [0, 1],

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@SiarheiFedartsou SiarheiFedartsou force-pushed the feature/efficientnet_encoder branch from 29c053c to d92d526 Compare October 2, 2019 16:19
@qubvel
Copy link
Collaborator

qubvel commented Oct 3, 2019

Great! Thanks for contribution!

@qubvel qubvel merged commit f249c81 into qubvel-org:master Oct 3, 2019
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

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.