Skip to content

Instantly share code, notes, and snippets.

@yang-zhang
Last active December 27, 2023 05:28
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save yang-zhang/ec071ae4775c2125595fd80f40efb0d6 to your computer and use it in GitHub Desktop.
Save yang-zhang/ec071ae4775c2125595fd80f40efb0d6 to your computer and use it in GitHub Desktop.
Multi-task Deep Learning Experiment using fastai Pytorch
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Light--
Copy link

Light-- commented Aug 11, 2020

$loss_{total} = \lambda_{age} * loss_{age} + \lambda_{gender} * loss_{gender}$

@icmpnorequest
as far as i know, only calculating the loss together doesn't make the model to have a multi-task structure, you are doing the multi-objective learning without a multi-task model structure, right?
if the model structure is really using the classical multi-task structure as you said, could you tell me which paper/webpage you refer to?
thanks.

@icmpnorequest
Copy link

$loss_{total} = \lambda_{age} * loss_{age} + \lambda_{gender} * loss_{gender}$

@icmpnorequest
as far as i know, only calculating the loss together doesn't make the model to have a multi-task structure, you are doing the multi-objective learning without a multi-task model structure, right?
if the model structure is really using the classical multi-task structure as you said, could you tell me which paper/webpage you refer to?
thanks.

Maybe you could refer to the paper [19 CVPR] Multimodal Age and Gender Classification Using Ear and Profile Face Images

@Mohamed-Khalil67
Copy link

Hi , i have errors in imageCLassificationDataset ( function not defined) and ImageDatabunch ( flase argument for size , non existent ). Is there anyway to correct them ?

@apssouza22
Copy link

If anyone else is facing issues when running this example I have run through hell to build a multitask model. I hope I save some people time with this ready to run on Colab example https://github.com/apssouza22/cnn-for-devs/blob/master/i-multitask-model.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment