iMet Collection 2019 - FGVC6
This is PyTorch baseline for https://www.kaggle.com/c/imet-2019-fgvc6/
License is MIT.
This is PyTorch baseline for https://www.kaggle.com/c/imet-2019-fgvc6/
License is MIT.
I am trying to use ResNet101 as backbone to train this nerual network.
I use this:
python main.py model_1 --model resnet101 --n-epoch 25
But when i was predicting:
python main.py predict_test model_1
This error happens:
RuntimeError: Error(s) in loading state_dict for ResNet:
Unexpected key(s) in state_dict: "net.layer3.6.conv1.weight", "net.layer3.6.bn1.weight", "net.layer3.6.bn1.bias", "net.layer3.6.bn1.running_mean", "net.layer3.6.bn1.running_var", "net.layer3.6.bn1.num_batches_tracked", "net.layer3.6.conv2.weight", "net.layer3.6.bn2.weight", "net.layer3.6.bn2.bias", "net.layer3.6.bn2.running_mean", "net.layer3.6.bn2.running_var", "net.layer3.6.bn2.num_batches_tracked", "net.layer3.6.conv3.weight"
......
I tried to change this:
net.load_state_dict(torch.load(weights_path)) in models.py
model.load_state_dict(state['model']) in utils.py
to this:
net.load_state_dict(torch.load(weights_path),strict=False)
model.load_state_dict(state['model'],strict=False)
But the score I got was very low. (0.1+)
I don't know how to solve this problem.
Can you please tell me how to change this code?
when I run the build.sh file
File "build.py", line 6 def encode_file(path: Path) -> str: ^ SyntaxError: invalid syntax
Is the sigmoid activation necessary before the output is fed into BCEWithLogitsLoss? Are there any reasons not using it in your code? Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.