(self, strings: list)
| 21 | clip_preprocess.transforms[4:]) # + skip convert PIL to tensor |
| 22 | |
| 23 | def tokenize(self, strings: list): |
| 24 | return clip.tokenize(strings).to(self.device) |
| 25 | |
| 26 | @torch.no_grad() |
| 27 | def encode_text(self, tokens: list) -> torch.Tensor: |
no outgoing calls
no test coverage detected