Closed yummyJade closed 9 months ago
Thank you for your great job! I notice there may be a mistake in inference code
logit_scale = torch.clamp(self.logit_scale, max=torch.log(torch.tensor(1. / 0.01))).exp()
it can fixed by
logit_scale = torch.clamp(self.logit_scale, max=torch.log(torch.tensor(1. / 0.01)).to('cuda')).exp()
Thanks for your criticism, original code works well on torch==1.11.0, the fixed one is more flexible.
Thank you for your great job! I notice there may be a mistake in inference code
it can fixed by