Search your repository in natural language, browse automatically generated, up-to-date documentation. Right now.
Or try one of...
CLIP model implementation
Convert numpy array to pil image
Image label viewer
2Results
CLIP
1.19
This code defines a class called "SD Model" that is used for image-text matching. It has various functions, including `get_model`, `get_input_names`, and `get_output_names`, which are used to retrieve information about the model and its inputs and outputs. Additionally, it has a function called `optimize` that optimizes an ONNX graph and exports it as an ONNX model if requested.