mlfoundations / open_clip

An open source implementation of CLIP.
Other
9.93k stars 959 forks source link

Loss isn't converging #821

Closed zhaowenZhou closed 5 months ago

zhaowenZhou commented 7 months ago

I am currently training CLIP model on my own dataset. For image part, all images come from different set of sequential images and for text part, the title is scene, weather, light, for example: 'urban, sunny, backlight'. image The loss isnt converging image image As for now i think the problem is that some of the images within a batch are from the same sequence, images will be alike and are likely to have same label. But model will still try to contrast it, make it hard to learn any useful information. Any advice or idea will be greatly appreciated

gongjizhang commented 7 months ago

Iim encountering a similar issue where the loss stops decreasing, specifically reaching around ln(0.5). My dataset consists of two classes。