Comments (6)
This arose because I tried to build a Unet with b5 backbone, and got a shape error. Is this why the b4 and b5 models haven't been updated on segmentation-models master?
from efficientnet.
It should be ok:
- (None None 3) shape is ok for segmentation models as they are fylly-conv and dont require input size - so this is expected behavior
- It is not updated cause I did not prepare release for efficient net (I was waiting for b6/7 weights)
- If you install
efficientnet
frommaster
and usesegmentation-models
from b4-b5 brach should work ok, but did not test it
from efficientnet.
-
I understand that its a valid input for segmentation models, but it causes the efficientnet backbone to not fall back onto its default input. For example the B5's default input is (456, 456, 3) and if you call Unet with the b5 backbone without specifying the shape, it falls back to (224, 224, 3) instead of the expected (456, 456, 3).
-
I have done so, in fact it does not work. See my comment.
from efficientnet.
Sorry if I dont catch your logic.
From my point of veiw could be next cases:
- input_shape = None -> go to default shape
- input_shape = (None, None, 3) and include_top = False -> ok
- input_shape = (h, w, c) -> ok
else:
raise error
If I replace with such statement if input_shape is None or None in input_shape
it would be not possible to make model with input shape (None, None, 3)
from efficientnet.
Could you clarify what is include_top?
It was my understanding that
input_shape = (None, None, 3) -> default_shape?
Am I missing something?
What do you say about the B5?
from efficientnet.
If you specify include_top=False
parameter the model will not build pooling and dense layers on top.
So there will be no error for input_shape=(None, None, 3)
and it will be possible to pass images of different size (useful case for semantic segmentation).
from efficientnet.
Related Issues (20)
- The drop connect rate (aka survival rate) is incorrect HOT 2
- Top 1 AND Top 5 ACCURACIES
- ValueError: Unknown layer: FixedDropout HOT 6
- Depthwise separable convolution for _expand_conv
- if _IMAGENET_MEAN is None:
- ValueError: Layer #0 (named "efficientnetb0" in the current model) was found to correspond to layer efficientnet-b0 in the save file. However the new layer efficientnetb0 expects 312 weights, but the saved weights have 309 elements. HOT 1
- How to take multiple output from pretrained network
- ValueError: rate must be a scalar tensor or a float in the range [0, 1), got 1 HOT 1
- how can i change backbone from resnet to efficientnet HOT 6
- Some question about the grid search
- Invalid argument: Incompatible shapes: [131072] vs. [262144] HOT 1
- The input must have 3 channels, I need 1 channel HOT 2
- I have malimg dataset and i want to apply EfficientNet model, can u help to do that ? be
- Efficientnet model not saving completely after training
- ModuleNotFoundError: No module named 'keras_applications' HOT 2
- Difference of EfficientNetB0 between this model and Official Tensorflow
- Bad prediction result using EfficientNet
- Remove `FixedDropout`
- Pickling errors for `preprocess_input` due to `functools.wraps`
- How to create a new network that has the same backbone but two detection heads: one with the imagenet weights and the second head with the new custom classes. I want to predict both imagenet and custom classes with the model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efficientnet.