Comments (6)
@noovd
Did you ensure that the input image is in [0,255] range before you apply normalization?
I use the following code
transformations = transforms.Compose([
transforms.Scale(224),
transforms.ToTensor(),
transforms.Lambda(lambda x: x.mul(255))
])
and then subtract the mean value
In my case I am able to fine-tune the model without any issue. Hope this help solve your problem.
from pretrained-models.pytorch.
@noovd I could not make vggm work in pytorch sorry. That is why it is not included in the API. It uses old torch7 layers ported in pytorch (which does not work with cuda).
I encourage you to evaluate it on CPU (and maybe port the old torch7 layer). As far as I remember, scores are similar to the caffe implementation.
from pretrained-models.pytorch.
Could you be more precise as to what is broken? I am actually able to use your 'vggm' implementation with the given imagenet pretrained weights on gpu but the results I get are unexpectedly bad for several evaluation tasks eventhough i took normalization and RGB -> BGR into account. I was wondering if you could help me out there? Is this the part which is not working?
from pretrained-models.pytorch.
Do we need to convert the images from RGB -> BGR when using this VGGM model?
from pretrained-models.pytorch.
@ntuyt Yes you do:
https://github.com/Cadene/pretrained-models.pytorch/blob/master/pretrainedmodels/models/vggm.py#L14
from pretrained-models.pytorch.
Hi, I have another question. Since input of original VGGM 224x224. But in your code, the input size is 221x221. Does it influence the performance. Meanwhile, I wonder the provided pretrained model is converted from which model?
from pretrained-models.pytorch.
Related Issues (20)
- What parameters should I use to reproduce the pre-training process of ResNet18
- Why InceptionResnetV2 has 1536 output feature maps HOT 1
- Can I use these pretrained models with the same input shape?
- Issue with Downloading Pretrained models
- VGG model.features HOT 1
- Problem with using model se_resnext50
- The se-resnet_50 model has either have corrupted weights or is an incomplete one!
- Error: unexpected EOF, expected 867442 more bytes. The file might be corruptedls.__dict__[model_name](num_classes=1000, pretrained='imagenet') model.eval()
- Pretrained model paths HOT 1
- error with pip install or git clone on kaggle kernel
- Requesting pre-trained model variants trained on grayscale ImageNet HOT 9
- What are the differences between files with difference hashes?
- HTTPError: HTTP Error 503: Service Unavailable when loading se_resnet50 weights
- DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 HOT 1
- SSL certificate is expired HOT 2
- Deprecated Warning of torchvision "pretrained"
- ModuleNotFoundError: No module named 'six' HOT 1
- The forward contains irrelevant attributes. HOT 1
- Need a pre-trained grayscale image net
- Xception pretrained state_dict keys no longer match the parameter names in the xception class
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 pretrained-models.pytorch.