Comments (3)
Sorry for the late reply since I didn't check my github so often and here's my answer.
I see here https://github.com/haqishen/SIIM-ISIC-Melanoma-Classification-1st-Place-Solution/blob/master/train.py#L84-L86 that you only perform gradient clipping for some image sizes, would you mind explaining why those two sizes (896 - 576)? Is this because they are bigger? Didn't you train with 768x768 images? Also in general how do you choose the clipping value?
Those specific model and image size raised some bug while training, which is caused by apex amp (but didn't know why). gradient clip helps to prevent it.
You are using Swish activation https://github.com/haqishen/SIIM-ISIC-Melanoma-Classification-1st-Place-Solution/blob/master/models.py#L11-L26, would you say that in general Swish is always a better choice that basic ReLU?
To my limited experience, yes.
I'd like to understand what you are doing here : https://github.com/haqishen/SIIM-ISIC-Melanoma-Classification-1st-Place-Solution/blob/master/models.py#L61-L66 It seems that you are applying 5 different dropouts at the very end on the same linear layer and average them, it does not seem a very common approach. I'm seeing this as a way of making sure that the last layer is training correctly but is this really needed? I find interesting the idea of self ensembling a model with different random heads at the end but why do you use the same linear layer? Why not having 5 different heads with different random inputs during training? I'd really like to understand :) Have you ever tried the 5 linear layer approach?
Good idea! We didnt' try it before. Maybe will try it next time.
why do not need to use weights in nn.CrossEntropyLoss to account for imbalance numbers of labels.
Since we only use one probability out of 9 classes and we use auc to evaluate the performance. So we dont' need to consider the imbalance.
from siim-isic-melanoma-classification-1st-place-solution.
I also want to ask, why do not need to use weights in nn.CrossEntropyLoss to account for imbalance numbers of labels.
from siim-isic-melanoma-classification-1st-place-solution.
thank you @haqishen!
from siim-isic-melanoma-classification-1st-place-solution.
Related Issues (7)
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 siim-isic-melanoma-classification-1st-place-solution.