Comments (3)
Hi. Thanks for the interest.
If you want to find a quick way of setting the weights. I would suggest to track the task-specific losses over a few iterations/epochs for every task. Then adjust the weights on the tasks a bit, so all of the losses are of similar magnitude.
For example, if we solve two tasks, with weights 1.0, and the average loss of task 1 is 100 times the average loss of task 2.
Then I would train with a weight * 100 for the second task.
Also, if you use a multi-task baseline, I find that Adam can sometimes achieve a bit higher numbers compared to SGD.
Ofcourse, you might get even better results if you further try to adjust the weights through trial-and-error. However, I find that the proposed method works well in practice.
Good luck.
from multi-task-learning-pytorch.
Thank you so much for the suggestions. For the Adam optimizer, does amsgrad parameter need to be set to True?
Best.
from multi-task-learning-pytorch.
Hi @ganlumomo
I only explored with the regular Adam optimizer and SGD (see the get_optimizer function in utils/common_config.py).
It should be possible to get good results when combining these optimizers with properly initialized weights (following the procedure outlined above).
from multi-task-learning-pytorch.
Related Issues (20)
- Setup issue HOT 1
- Implemention of task balancing methods HOT 1
- [question] where is hrnet_w18_small_model_v2.pth?
- Implementaion for decoder focused MTL methods based on ResNet-50
- Cityscapes depth estimation HOT 2
- PADNet loss scheme interpolation
- [Question] About dataset condition for MTL HOT 3
- Backbone
- Depth performance using ResNet-50 (Single-task performance)
- hrnet18+padnet HOT 1
- How to calculate the edges in NYUD?
- About 'seism'
- Human Parts
- How it works with Batch Normalization?
- Can we do Multiple Classification task
- About dataset training
- Dataset URL HOT 2
- About PAP-Net
- About PAP-Net
- MTL+Resnet50+nyud
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 multi-task-learning-pytorch.