mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

Add triplet for training models

Open lutianhao opened this issue 3 years ago • 4 comments

Hi,If I want to add triplet for training how should I add it to the project in a reasonable way?

lutianhao avatar Aug 01 '22 06:08 lutianhao

could you please describe triplet in more details?

jin-s13 avatar Aug 01 '22 10:08 jin-s13

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}




    I'd like to add triplet loss as a train loss, It is hoped that images with different angles of the same ID can learn similar features. 

    The source code I plan to use for Tripletloss is : torch.nn — PyTorch master documentation

 

    
                ***@***.***
    




---- Replied Message ----



  
    
     From 
    
    
        ***@***.***>
        
    
  
  
    
     Date 
    
    
    8/1/2022 18:16
    
  
  
    
     To 
    
    
     
      
        ***@***.***>
        
      
    
  
  
    
     Cc 
    
    
      
        ***@***.***>
        ,
      
      
        ***@***.***>
        
      
    
  
  
    
     Subject 
    
    
          Re: [open-mmlab/mmpose] Add triplet for training models (Issue #1529)

could you please describe triplet in more details?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

lutianhao avatar Aug 01 '22 10:08 lutianhao

Maybe you can add a custom dataset to generate triplets. I am not sure.

jin-s13 avatar Aug 01 '22 10:08 jin-s13

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}




    But how to deal with batch size. for I've read 'bottomup coco dataset' and it just catch data by function 'get_single', how mmpose load new data? like use forward or iter function? Could you please point the specific code files and line numbers? Thanks!

    
        
    


 

    
                ***@***.***
    




---- Replied Message ----



  
    
     From 
    
    
        ***@***.***>
        
    
  
  
    
     Date 
    
    
    8/1/2022 18:32
    
  
  
    
     To 
    
    
     
      
        ***@***.***>
        
      
    
  
  
    
     Cc 
    
    
      
        ***@***.***>
        ,
      
      
        ***@***.***>
        
      
    
  
  
    
     Subject 
    
    
          Re: [open-mmlab/mmpose] Add triplet for training models (Issue #1529)

Maybe you can add a custom dataset to generate triplets. I am not sure.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

lutianhao avatar Aug 01 '22 12:08 lutianhao