Open DavisMeee opened 7 months ago
clip_caps[i] = clip_text.mean(0)
~~~~~^^^ RuntimeError: The expanded size of the tensor (59136) must match the existing size (768) at non-singleton dimension 0. Target sizes: [59136]. Tensor sizes: [768]
Hello, have you solved this problem?
clip_caps[i] = clip_text.mean(0)
~~~~~^^^ RuntimeError: The expanded size of the tensor (59136) must match the existing size (768) at non-singleton dimension 0. Target sizes: [59136]. Tensor sizes: [768]Hello, have you solved this problem?
LOL, I haven't tried that yet. But I think you just need to do a reshape before this.
clip_caps[i] = clip_text.mean(0)