htyao89 / KgCoOp

82 stars 8 forks source link

Is kg loss necessary for inference? #3

Open taewhankim opened 1 year ago

taewhankim commented 1 year ago

Thanks for sharing your awesome project. When making inference only for demo purposes, do we need L_kg or only the existing L_ce? image

htyao89 commented 1 year ago

L_kg+L_ce is used for inferring the learnable prompt during training. During inference, the learnable prompt is directly used to generate the textual class space for classification.

taewhankim commented 1 year ago

Thank!!