OpenClip also returns a size 3 tuple instead of 2 in OpenAI. The type ofdeviceparam is also different. OpenClip requirestorch.device('cuda') or torch.device('cpu')where OpenAI can take a string of'cuda' or 'cpu' Now we can move on to image preprocessing: ...