MCPcopy Create free account
hub / github.com/microsoft/Cream / inference.py

File inference.py

TinyCLIP/inference.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import torch
2from PIL import Image
3import open_clip
4

Callers

nothing calls this directly

Calls 4

normMethod · 0.80
printFunction · 0.50
encode_imageMethod · 0.45
encode_textMethod · 0.45

Tested by

no test coverage detected